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
commita477318a8e404a1a4820bf78d1f4d0af5c321baf (patch)
treed2d8b6fe9546474dbebf42671aeb2dc33e82e3a4 /bin
parentAdd line numbers to hi (diff)
downloadsrc-a477318a8e404a1a4820bf78d1f4d0af5c321baf.tar.gz
src-a477318a8e404a1a4820bf78d1f4d0af5c321baf.zip
Simplify temp trap in up
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() {