Changeset 30424
- Timestamp:
- 2016-03-21T20:05:23+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/expeditee-release-kits/process_incoming.sh
r30410 r30424 11 11 # uploaded. 12 12 13 origdir=`pwd` 14 15 # default binary directory to where this script lives, then go there 16 # http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in 17 bindir=`dirname "$0"` #dirname "$(readlink -f "$0")" 18 pushd $bindir 13 19 14 20 # http://stackoverflow.com/questions/1401482/yyyy-mm-dd-format-date-in-shell-script … … 18 24 # the file uploaded is the one with the latest timestamp 19 25 # ls -rt lists files by time, then get the last one 26 # the file pattern looks for rke-currentdate-<OS>.out files 20 27 #incoming_file=$1 21 incoming_file=`ls -rt *$date* 2>/dev/null | tail -n 1` 22 #echo "Hello world. Incoming file: $incoming_file" >> out.txt 28 incoming_file=`ls -rt rke-*$date*.out 2>/dev/null | tail -n 1` 29 #echo "Incoming file: $incoming_file" >> out.txt 30 31 # http://stackoverflow.com/questions/21620406/how-do-i-pause-my-shell-script-for-1-second-before-continuing 32 #sleep 2m 23 33 24 34 # arrays … … 103 113 #ls -la "._Expeditee*dmg" 104 114 rm -rf "._Expeditee*dmg" 115 116 popd
Note:
See TracChangeset
for help on using the changeset viewer.