Changeset 30408

Show
Ignore:
Timestamp:
15.03.2016 20:19:51 (4 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.

Files:
1 modified

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