This commit is contained in:
xenia 2024-09-20 13:22:36 -04:00
parent 81668475c5
commit 3c1747d70d
1 changed files with 2 additions and 2 deletions

View File

@ -90,10 +90,10 @@ let
module load singularity/3.10.3
temp_dir="$(mktemp -d)"
mkdir -p "$TMPDIR/empty"
mkdir -p "''${TMPDIR:-/tmp}/empty"
function __cleanup {
echo cleaning up
rsync -r --delete -- "$TMPDIR/empty/." "$temp_dir/."
rsync -r --delete -- "''${TMPDIR:-/tmp}/empty/." "$temp_dir/."
rmdir "$temp_dir"
echo done
}