From 01e6e57f4165fc7664c6b3112fb80406f2e3042c Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sat, 10 Nov 2018 15:56:43 -0800 Subject: [PATCH] don't use -f to prevent removing too much.. --- snapaid.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snapaid.sh b/snapaid.sh index ddc2060..3402a85 100755 --- a/snapaid.sh +++ b/snapaid.sh @@ -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"