summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-17 14:40:16 -0500
committerJune McEnroe <june@causal.agency>2019-02-17 14:40:16 -0500
commit29b9e544822bebe86e91a7fe328acc080a2f8053 (patch)
tree3f521526a859199220a3c02e98ae241d72e836da /bin
parentAdd line numbers to hi (diff)
downloadsrc-29b9e544822bebe86e91a7fe328acc080a2f8053.tar.gz
src-29b9e544822bebe86e91a7fe328acc080a2f8053.zip
Simplify temp trap in up
Diffstat (limited to 'bin')
-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() {