summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/up.sh5
1 files changed, 1 insertions, 4 deletions
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() {