Only delete files once.
This commit is contained in:
@@ -16,6 +16,7 @@ function safely_remove_tmp_repos() {
|
||||
function cleanup() {
|
||||
safely_remove_tmp_repos
|
||||
}
|
||||
trap cleanup EXIT
|
||||
directory="$1"
|
||||
script_dir="$(dirname "$0")"
|
||||
if [ ! "$directory" ]; then
|
||||
@@ -38,7 +39,6 @@ if ! command -v quarto >/dev/null 2>&1; then
|
||||
echo "Error: 'quarto' command not found. Please install Quarto to render project pages."
|
||||
exit 1
|
||||
fi
|
||||
trap cleanup EXIT
|
||||
GIT_URL='https://git.seanhealy.ie'
|
||||
GIT_USER=sean
|
||||
GITHUB_USER=seanhly
|
||||
@@ -219,4 +219,3 @@ else
|
||||
mkdir -p "$directory"
|
||||
fi
|
||||
rsync -a "$tmp_portfolio/" "$directory/"
|
||||
safely_remove_tmp_repos
|
||||
|
||||
Reference in New Issue
Block a user