Browse Source

don't use -f to prevent removing too much..

main
John-Mark Gurney 6 years ago
parent
commit
01e6e57f41
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      snapaid.sh

+ 2
- 2
snapaid.sh View File

@@ -310,7 +310,7 @@ elif [ x"$1" = x"find" ]; then

tmpdir=$(mktemp -d -t snapaid)

trap "rm -rf $tmpdir" 0
trap "rm -r $tmpdir" 0

( cd "$tmpdir";
xzcat "$STOREDIR"/snapshot.idx.xz | sort -r -k 5 > selection;
@@ -379,7 +379,7 @@ elif [ x"$1" = x"test" ]; then
# Setup test environment
tmpdir=$(mktemp -d -t snapaid)

trap "rm -rf $tmpdir" 0
trap "rm -r $tmpdir" 0

cd "$tmpdir"



Loading…
Cancel
Save