aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-01-08 15:47:47 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-01-08 15:47:47 +0000
commit1c466709d963cc9d50e7f706de03fbe3c4cfd264 (patch)
tree8d06930da359989624b20690fcbd981dd07510f8
parentb2a60d686c8734999dfd65d6d84effea25a0a759 (diff)
properly quote paths
always good style to allow spaces in path-names svn path=/trunk/; revision=16842
-rwxr-xr-xscripts/auto-build/prep-auto-build-upload24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload
index 9efdb340..11ce63d6 100755
--- a/scripts/auto-build/prep-auto-build-upload
+++ b/scripts/auto-build/prep-auto-build-upload
@@ -6,23 +6,23 @@ SYSTEM=`uname -s`
DATE=`date +%Y-%m-%d`
TIME=`date +%H.%M.%S`
SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
-LOGFILE=/tmp/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
+LOGFILE="/tmp/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt"
BUILD_ROOT=/home/apt/www/auto-build
TODAYS_ROOT="${BUILD_ROOT}/${DATE}"
-chmod u+w "$BUILD_ROOT" >> $LOGFILE 2>&1
-mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1
-mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1
+chmod u+w "${BUILD_ROOT}" >> "${LOGFILE}" 2>&1
+mkdir "${TODAYS_ROOT}" >> "${LOGFILE}" 2>&1
+mkdir "${TODAYS_ROOT}/logs" >> "${LOGFILE}" 2>&1
-find "${BUILD_ROOT}" -not -perm -a+r -exec chmod a+r \{\} \; >> ${LOGFILE} 2>&1
-find "${BUILD_ROOT}" -perm /a+w -exec chmod a-w \{\} \; >> ${LOGFILE} 2>&1
+find "${BUILD_ROOT}" -not -perm -a+r -exec chmod a+r \{\} \; >> "${LOGFILE}" 2>&1
+find "${BUILD_ROOT}" -perm /a+w -exec chmod a-w \{\} \; >> "${LOGFILE}" 2>&1
-chmod 0755 "${TODAYS_ROOT}" >> $LOGFILE 2>&1
-chmod 0755 "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1
-chmod a-w "$BUILD_ROOT" >> $LOGFILE 2>&1
-chmod u+w "$BUILD_ROOT/latest" >> $LOGFILE 2>&1
+chmod 0755 "${TODAYS_ROOT}" >> "${LOGFILE}" 2>&1
+chmod 0755 "${TODAYS_ROOT}/logs" >> "${LOGFILE}" 2>&1
+chmod a-w "${BUILD_ROOT}" >> "${LOGFILE}" 2>&1
+chmod u+w "${BUILD_ROOT}/latest" >> "${LOGFILE}" 2>&1
-if [ -d $TODAYS_ROOT/logs ]; then
- mv $LOGFILE $TODAYS_ROOT/logs/
+if [ -d "${TODAYS_ROOT}/logs" ]; then
+ mv "${LOGFILE}" "${TODAYS_ROOT}/logs/"
fi