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 '')
-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() {
a href='/pounce/commit/bounce.c?h=1.0p2&id=13fdf558c76b71f95776fbc4460f5651ad64dafe&follow=1'>Check that password is hashedJune McEnroe 2019-11-08Avoid calling getopt_long again after it returns -1June McEnroe On GNU, calling getopt_long again will reset optind back to the first non-option argument, which would cause an infinite loop of reading the same configurtion file forever. 2019-11-08Only change AWAY status for registered clientsJune McEnroe Turns out I did eventually fix this, because I may want to implement "passive clients" for logging or notification stuff, which wouldn't affect AWAY status either. 2019-11-07Just write the example normallyJune McEnroe 2019-11-07Include path in readlinkat errorJune McEnroe 2019-11-07Call clientConsume before clientRecvJune McEnroe This might reduce the frequency of a client getting its own message back because it was behind in the ring when it sent it. 2019-11-06Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe