From 86348df457c23512038419c561c8112c44e677a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Mon, 9 Jan 2017 18:52:52 +0100 Subject: [PATCH] added set -e --- install-zammad.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-zammad.sh b/install-zammad.sh index db77ffd..a29dd8d 100644 --- a/install-zammad.sh +++ b/install-zammad.sh @@ -1,12 +1,14 @@ #!/bin/bash +set -e + # install zammad echo "installing zammad..." -cd /tmp || exit 1 +cd /tmp git clone --depth 1 -b "${GIT_BRANCH}" "${GIT_URL}" cp -R /tmp/zammad/* "${ZAMMAD_DIR}" cp -R /tmp/zammad/.[!.]* "${ZAMMAD_DIR}" -cd "${ZAMMAD_DIR}" || exit 1 +cd "${ZAMMAD_DIR}" rm -rf /tmp/zammad bundle install --without test development mysql contrib/packager.io/fetch_locales.rb