Delete hidden files at deploy (excluding sunlink)
This commit is contained in:
parent
6df8061633
commit
e514af0814
|
@ -48,7 +48,8 @@ fi
|
||||||
|
|
||||||
if [ "$delete_target" = true ]; then
|
if [ "$delete_target" = true ]; then
|
||||||
echo "[[ Deploy ]] Deleting then recreating '$dst_dir'."
|
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"
|
chmod g+w "$dst_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,8 @@ fi
|
||||||
|
|
||||||
if [ "$delete_target" = true ]; then
|
if [ "$delete_target" = true ]; then
|
||||||
echo "[[ Deploy ]] Deleting then recreating '$dst_dir'."
|
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"
|
chmod g+w "$dst_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue