summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-24 14:45:32 -0500
committerJune McEnroe <june@causal.agency>2019-02-24 14:45:32 -0500
commit5afe7822252ae9be0b2a272d65bb5ffd09d4a84d (patch)
treecac0db49a09e1ecfff9df6bab330548761d81428 /bin
parentAdd setopt (diff)
downloadsrc-5afe7822252ae9be0b2a272d65bb5ffd09d4a84d.tar.gz
src-5afe7822252ae9be0b2a272d65bb5ffd09d4a84d.zip
Use setopt in up
Diffstat (limited to '')
-rw-r--r--bin/up.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/up.sh b/bin/up.sh
index 36febe7f..07a0b76b 100644
--- a/bin/up.sh
+++ b/bin/up.sh
@@ -38,8 +38,8 @@ uploadScreen() {
 	upload "${temp}/capture.png"
 }
 
-args=$(getopt 'hs' $*)
-set -- $args
+args=$(setopt 'hs' "$@")
+eval set -- "$args"
 for opt; do
 	case "$opt" in
 		(-h) shift; fn=uploadHi;;
f0e786c1b041123a809&follow=1'>Unset non-blocking on clientsJune McEnroe I figure I'll actually use POLLOUT on clients so should never have issues. 2019-10-24Intercept client QUITJune McEnroe 2019-10-24Only set NeedCapEnd if unregisteredJune McEnroe 2019-10-24Set client-side origin to irc.invalidJune McEnroe 2019-10-24Factor out client-side origin nameJune McEnroe 2019-10-24Intercept all CAP commands from clientsJune McEnroe 2019-10-24Ignore further CAP ENDJune McEnroe 2019-10-24Implement client CAP for server-timeJune McEnroe 2019-10-24Implement ringWriteJune McEnroe 2019-10-24Make clientFormat publicJune McEnroe 2019-10-24Make serverFormat publicJune McEnroe 2019-10-24Rename some thingsJune McEnroe 2019-10-23Add ISUPPORT draft to STANDARDSJune McEnroe 2019-10-23Track own originJune McEnroe 2019-10-23Track channels and sync ISUPPORTJune McEnroe 2019-10-23Track nick changesJune McEnroe 2019-10-23Rename Command to MessageJune McEnroe 2019-10-23Synchronize state after client registrationJune McEnroe 2019-10-23Send to server if client has no needsJune McEnroe 2019-10-23Implement some amount of client connectionJune McEnroe 2019-10-23Set clients non-blockingJune McEnroe 2019-10-23Clean up state.c and factor out parsingJune McEnroe 2019-10-23Respond to pingsJune McEnroe 2019-10-23Add verbose flagJune McEnroe 2019-10-23Set NOSIGPIPE on server connectionJune McEnroe 2019-10-23Set an initial loop capJune McEnroe 2019-10-23Fix rest parsingJune McEnroe 2019-10-23Add dynamic poll listJune McEnroe 2019-10-23Don't assume commands have targets and handle ERRORJune McEnroe 2019-10-23Clean up state somewhatJune McEnroe 2019-10-23Actually send the buffer...June McEnroe 2019-10-23Add stateJune McEnroe