summaryrefslogtreecommitdiffstats
path: root/post-receive.cyrax-build
diff options
context:
space:
mode:
Diffstat (limited to 'post-receive.cyrax-build')
-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}"