oop
This commit is contained in:
parent
81668475c5
commit
3c1747d70d
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue