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
commitcec7c08093375e4751478ac9f48f615d726f49d0 (patch)
tree9a7c91be1a4b2d9c2d44dd7f18e2db182fb07c1c /bin
parentAdd setopt (diff)
downloadsrc-cec7c08093375e4751478ac9f48f615d726f49d0.tar.gz
src-cec7c08093375e4751478ac9f48f615d726f49d0.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;;