[Swift-commit] r8467 - www
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Fri Jul 17 14:04:38 CDT 2015
Author: wozniak
Date: 2015-07-17 14:04:38 -0500 (Fri, 17 Jul 2015)
New Revision: 8467
Modified:
www/push_to.sh
Log:
Abort on first copy failure
Modified: www/push_to.sh
===================================================================
--- www/push_to.sh 2015-07-17 18:25:37 UTC (rev 8466)
+++ www/push_to.sh 2015-07-17 19:04:38 UTC (rev 8467)
@@ -268,7 +268,7 @@
mkdir -p $DESTINATION/$destination_dir
chgrp $GROUP $DESTINATION/$destination_dir > /dev/null 2>&1
chmod $CHMOD_DIRECTORY_MODE $DESTINATION/$destination_dir > /dev/null 2>&1
- cp -${U}v $FILE $DESTINATION/$destination_dir
+ cp -${U}v $FILE $DESTINATION/$destination_dir || exit 1
chgrp $GROUP $DESTINATION/$FILE > /dev/null 2>&1
chmod $CHMOD_FILE_MODE $DESTINATION/$FILE > /dev/null 2>&1
done
More information about the Swift-commit
mailing list