From 47515dc4c6b86627f2ecf5db464c87123ff53544 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Wed, 28 Apr 2021 13:18:37 +0200 Subject: [PATCH] Deploy dist/ only in static deployments --- deploy-static | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy-static b/deploy-static index 9435a20..cb0b91d 100755 --- a/deploy-static +++ b/deploy-static @@ -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"