summary refs log tree commit diff
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
parentAdd setopt (diff)
downloadsrc-5afe7822252ae9be0b2a272d65bb5ffd09d4a84d.tar.gz
src-5afe7822252ae9be0b2a272d65bb5ffd09d4a84d.zip
Use setopt in up
-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;;