diff options
author | June McEnroe <june@causal.agency> | 2019-02-17 14:40:16 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-17 14:40:16 -0500 |
commit | a477318a8e404a1a4820bf78d1f4d0af5c321baf (patch) | |
tree | d2d8b6fe9546474dbebf42671aeb2dc33e82e3a4 | |
parent | Add line numbers to hi (diff) | |
download | src-a477318a8e404a1a4820bf78d1f4d0af5c321baf.tar.gz src-a477318a8e404a1a4820bf78d1f4d0af5c321baf.zip |
Simplify temp trap in up
Diffstat (limited to '')
-rw-r--r-- | bin/up.sh | 5 |
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() { |