I have the following problem. I have a bash script that uses wget to get a few files from the build server, and then scp's them over to the production system: Here is the relevant snippet:
#Several of these lines wget -nv -O birt_reports.zip "http://buildserver:8111/guestAuth/repository/download/bt6/.lastFinished/birt_reports.zip" #files in the for loop left out for simplicity for upload_file in "birt_reports.zip"; do scp -B -i /root/$keyfile $upload_file $user@gateway:/home/$user/deploy_staging touch $upload_file done
Even with the touch in there the time shown in ls -l of the directory is the time the file was first created. If I do the wget outside the bash script or the touch outside the bash script, the time updates correctly.
What could the issue be?