From cec7c08093375e4751478ac9f48f615d726f49d0 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 24 Feb 2019 14:45:32 -0500 Subject: Use setopt in up --- bin/up.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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;; -- cgit 1.4.1