Deploy dist/ only in static deployments

This commit is contained in:
Florine W. Dekker 2021-04-28 13:18:37 +02:00
parent f3aa1f0eb2
commit 47515dc4c6
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
1 changed files with 3 additions and 3 deletions

View File

@ -38,9 +38,9 @@ if [ "$delete_target" = true ]; then
chmod g+w "$dst_dir"
fi
echo "[[ Deploy ]] Copying files from '$tmp_dir' to '$dst_dir'."
chmod -R g+w "$tmp_dir"
cp -r "$tmp_dir/" "$dst_dir"
echo "[[ Deploy ]] Copying files from '$tmp_dir/dist' to '$dst_dir'."
chmod -R g+w "$tmp_dir/dist"
cp -r "$tmp_dir/dist/" "$dst_dir"
echo "[[ Deploy ]] Deleting '$tmp_dir'."
rm -rf "$tmp_dir"