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
}
}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/"