Skip to content

Commit

Permalink
change directory before moving file
Browse files Browse the repository at this point in the history
  • Loading branch information
avilleret committed Feb 11, 2016
1 parent c192a70 commit 3854153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/deploy-thor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3854153

Please sign in to comment.