diff --git a/deploy-npm b/deploy-npm index 4f31b17..532498e 100755 --- a/deploy-npm +++ b/deploy-npm @@ -48,7 +48,8 @@ fi if [ "$delete_target" = true ]; then echo "[[ Deploy ]] Deleting then recreating '$dst_dir'." - rm -rf "${dst_dir:?}/**" + # shellcheck disable=SC2086 + rm -rf ${dst_dir:?}/..?* ${dst_dir:?}/.[!.]* ${dst_dir:?}/** chmod g+w "$dst_dir" fi diff --git a/deploy-static b/deploy-static index 7860269..6075b7f 100755 --- a/deploy-static +++ b/deploy-static @@ -42,7 +42,8 @@ fi if [ "$delete_target" = true ]; then echo "[[ Deploy ]] Deleting then recreating '$dst_dir'." - rm -rf "${dst_dir:?}/**" + # shellcheck disable=SC2086 + rm -rf ${dst_dir:?}/..?* ${dst_dir:?}/.[!.]* ${dst_dir:?}/** chmod g+w "$dst_dir" fi