Changeset 30408


Ignore:
Timestamp:
2016-03-15T20:19:51+13:00 (6 years ago)
Author:
ak19
Message:

Fix (from Puka) for the upload destination machine to work out the incoming nightly file's name when the file is uploaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/expeditee-release-kits/process_incoming.sh

    r30407 r30408  
    1010
    1111
    12 incoming_file=$1
    13 
    1412# http://stackoverflow.com/questions/1401482/yyyy-mm-dd-format-date-in-shell-script                                                                   
    1513date=`date +%Y-%m-%d`
     14
     15# code from Puka
     16# the file uploaded is the one with the latest timestamp
     17# ls -rt lists files by time, then get the last one
     18#incoming_file=$1
     19incoming_file=`ls -rt *$date* 2>/dev/null | tail -n 1`
     20echo $incoming_file
    1621
    1722# arrays
Note: See TracChangeset for help on using the changeset viewer.