From 3854153ea2480415156f13b485955bff26e38e62 Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Thu, 11 Feb 2016 17:30:10 +0100 Subject: [PATCH] change directory before moving file --- script/deploy-thor.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/deploy-thor.sh b/script/deploy-thor.sh index 286a435..d30a085 100755 --- a/script/deploy-thor.sh +++ b/script/deploy-thor.sh @@ -84,10 +84,11 @@ else tar czf "${TRAVIS_BUILD_DIR}/${ARCHIVE_NAME}.tar.gz" Jamoma/ fi +cd ${TRAVIS_BUILD_DIR} + if [ "x${TRAVIS_BRANCH}" != "xmaster" ]; then echo "We are not on master branch, don't upload build." else - cd ${TRAVIS_BUILD_DIR} scp ${ARCHIVE_NAME}* ${DEPLOYTARGET} fi