From a477318a8e404a1a4820bf78d1f4d0af5c321baf Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 17 Feb 2019 14:40:16 -0500 Subject: Simplify temp trap in up --- bin/up.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/up.sh b/bin/up.sh index 5f9f409c..3850875b 100644 --- a/bin/up.sh +++ b/bin/up.sh @@ -16,10 +16,7 @@ upload() { temp() { temp=$(mktemp -d) - trap rmtemp EXIT -} -rmtemp() { - rm -r "$temp" + trap "rm -r '$temp'" EXIT } uploadText() { -- cgit 1.4.1