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 | 29b9e544822bebe86e91a7fe328acc080a2f8053 (patch) | |
tree | 3f521526a859199220a3c02e98ae241d72e836da | |
parent | Add line numbers to hi (diff) | |
download | src-29b9e544822bebe86e91a7fe328acc080a2f8053.tar.gz src-29b9e544822bebe86e91a7fe328acc080a2f8053.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() { |