summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-01-28 21:12:43 +0100
committerwartung <wartung@vm-staticweb.spline.inf.fu-berlin.de>2015-01-28 21:12:43 +0100
commitf579accaf9b21dbd09e6d08af69d9635e0cdd638 (patch)
treed51239540842bc5b1f1702f58da25cd26e8c72ea
parent951dc1fa9e6d519fc9e8a45f1d1126490ad37875 (diff)
downloadhooks-f579accaf9b21dbd09e6d08af69d9635e0cdd638.tar.gz
hooks-f579accaf9b21dbd09e6d08af69d9635e0cdd638.tar.bz2
hooks-f579accaf9b21dbd09e6d08af69d9635e0cdd638.zip
post-receive.cyrax-build: Remove trailing whitespaces.
-rwxr-xr-xpost-receive.cyrax-build6
1 files changed, 3 insertions, 3 deletions
diff --git a/post-receive.cyrax-build b/post-receive.cyrax-build
index fcb816d..8a2ebef 100755
--- a/post-receive.cyrax-build
+++ b/post-receive.cyrax-build
@@ -13,7 +13,7 @@ while read old new ref ; do
TARGET_DIR="${WEB_BASE}/branches.spline.de/htdocs/"
URL="http://branches.spline.de/${BRANCH}/"
RELATIVE="${BRANCH}"
-
+
if [ "${new}" = "0000000000000000000000000000000000000000" ]; then
rm -rf "${TARGET_DIR}/${BRANCH}/"
exit 0
@@ -31,11 +31,11 @@ while read old new ref ; do
. /home/wartung/cyrax_env/bin/activate
mkdir -p "${TARGET_TMP_DIR}"
cyrax -q -d ${TARGET_TMP_DIR} ${TMP_DIR}
-
+
mkdir -p "${TARGET_DIR}/${RELATIVE}/"
rm -rf "${TARGET_DIR}/${RELATIVE}/"
mv "${TARGET_TMP_DIR}/${RELATIVE}/" "${TARGET_DIR}/${RELATIVE}/"
-
+
rm -rf "${TMP_DIR}"
rm -rf "${TARGET_TMP_DIR}"