Skip to content

Commit

Permalink
targetted delete
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfiea committed Apr 24, 2024
1 parent cdc75a1 commit 4fa3ff0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build/bin/copy-gitops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 4fa3ff0

Please sign in to comment.