From 3b0868c61eef2a97574e4a0e1b63e28f3559078f Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Thu, 15 Sep 2016 22:35:26 +0200 Subject: [PATCH] stupid, STUPID escaping mistake. D'OH! --- deploy.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2228e7d..3930937 100644 --- a/deploy.sh +++ b/deploy.sh @@ -5,7 +5,7 @@ function die() { exit 1 } -}declare destination +declare destination case "${TARGET}" in "${WWW_DEPLOY_ROOT_DEVELOP}") destination="${TARGET}/${CI_BUILD_REF_NAME}" @@ -22,14 +22,8 @@ if [[ ! -d "${destination}" ]] ; then mkdir -p "${destination}" || die "Failed to create target directory for deployment!" fi -echo "Before any deletion:" -ls "${destination}" -rm -rf "${destination}/*" || die "Failed to clean destination directory (step 1)" -echo "After rm -rf dest/*:" -ls "${destination}" -rm -rf "${destination}/.??*" || die "Failed to clean destination directory (step 2)" -echo "After rm -rf dest/.??:" -ls "${destination}" +rm -rf "${destination}"/* || die "Failed to clean destination directory (step 1)" +rm -rf "${destination}"/.??* || die "Failed to clean destination directory (step 2)" cp -a dencode.css index.html package.json systemjs.config.js "${destination}" || die "Failed to copy resources to dest/"