Author: nickboldt
Date: 2011-01-04 11:06:23 -0500 (Tue, 04 Jan 2011)
New Revision: 27869
Modified:
trunk/build/publish.sh
Log:
check if file exists before trying to unzip it
Modified: trunk/build/publish.sh
===================================================================
--- trunk/build/publish.sh 2011-01-04 15:54:02 UTC (rev 27868)
+++ trunk/build/publish.sh 2011-01-04 16:06:23 UTC (rev 27869)
@@ -121,13 +121,15 @@
if [[ ! -f ${STAGINGDIR}/all/${SNAPNAME} ]]; then
for z in $(find ${WORKSPACE} -maxdepth 5 -mindepth 3 -name "*Update*.zip" |
sort | tail -1); do
#echo "$z ..."
- mkdir -p ${STAGINGDIR}/all
- unzip -u -o -q -d ${STAGINGDIR}/all/ $z
+ if [[ -f $z ]]; then
+ mkdir -p ${STAGINGDIR}/all
+ unzip -u -o -q -d ${STAGINGDIR}/all/ $z
- # generate MD5 sum for zip (file contains only the hash, not the hash +
filename)
- for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m >
${z}.MD5; fi; done
+ # generate MD5 sum for zip (file contains only the hash, not the hash +
filename)
+ for m in $(md5sum ${z}); do if [[ $m != ${z} ]]; then echo $m >
${z}.MD5; fi; done
- rsync -aq $z ${z}.MD5 ${STAGINGDIR}/all/${SNAPNAME}
+ rsync -aq $z ${z}.MD5 ${STAGINGDIR}/all/${SNAPNAME}
+ fi
done
fi
Show replies by date