stupid, STUPID escaping mistake. D'OH!

This commit is contained in:
Manuel Friedli 2016-09-15 22:35:26 +02:00
parent 1608a354cf
commit 3b0868c61e

View file

@ -5,7 +5,7 @@ function die() {
exit 1 exit 1
} }
}declare destination declare destination
case "${TARGET}" in case "${TARGET}" in
"${WWW_DEPLOY_ROOT_DEVELOP}") "${WWW_DEPLOY_ROOT_DEVELOP}")
destination="${TARGET}/${CI_BUILD_REF_NAME}" 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!" mkdir -p "${destination}" || die "Failed to create target directory for deployment!"
fi fi
echo "Before any deletion:" rm -rf "${destination}"/* || die "Failed to clean destination directory (step 1)"
ls "${destination}" rm -rf "${destination}"/.??* || die "Failed to clean destination directory (step 2)"
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}"
cp -a dencode.css index.html package.json systemjs.config.js "${destination}" || die "Failed to copy resources to dest/" cp -a dencode.css index.html package.json systemjs.config.js "${destination}" || die "Failed to copy resources to dest/"