From 4fa3ff04b32655d71dc5b36fa01c297a3fa67623 Mon Sep 17 00:00:00 2001 From: Andrew Whitfield Date: Wed, 24 Apr 2024 18:11:58 +0100 Subject: [PATCH] targetted delete --- build/bin/copy-gitops.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build/bin/copy-gitops.sh b/build/bin/copy-gitops.sh index fdae394c7..c77ffa68c 100755 --- a/build/bin/copy-gitops.sh +++ b/build/bin/copy-gitops.sh @@ -33,8 +33,13 @@ done : ${SOURCE?"Need to set -s|--source argument for source directory"} : ${TARGET?"Need to set -t|--target argument for target directory"} -echo "Deleting all files in target" -rm -rf ${TARGET}/* +echo "Deleting files in target" +rm -rvf ${TARGET}/applications/* +rm -rvf ${TARGET}/docs/* +rm -rvf ${TARGET}/root-applications/* +rm -v README.md +rm -v LICENSE echo "Copying gitops" cp -vr ${SOURCE}/* ${TARGET} +