From 44ae5599187514069701ee914ea1f893ba93a044 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Sun, 11 Dec 2022 08:47:36 +0100 Subject: [PATCH] sequencer - fix getopts case strings with - --- sequencer.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sequencer.sh b/sequencer.sh index 9834949..62b5df8 100755 --- a/sequencer.sh +++ b/sequencer.sh @@ -667,8 +667,8 @@ ask() { while getopts "fny" arg; do case "${arg}" in - -e) empty=1 ;; - -s) hidden="-s" ;; + e) empty=1 ;; + s) hidden="-s" ;; *) ;; esac done @@ -801,15 +801,15 @@ addConf() { while getopts "acfms" ; do case "${arg}" in - -c) # create a new file + c) # create a new file addConfMultiError "${confMode}" && confMode="-c" ;; - -a) # append to existing file + a) # append to existing file addConfMultiError "${confMode}" && confMode="-a" ;; - -s) # skip if CONFIGFILE exists + s) # skip if CONFIGFILE exists addConfMultiError "${confMode}" && confMode="-s" ;; - -m) # only add content to missing conf and warn user + m) # only add content to missing conf and warn user addConfMultiError "${confMode}" && confMode="-m" ;; - -f) # choose if source is a file or text + f) # choose if source is a file or text transferCmd="cat" ;; *) ;; esac @@ -1166,9 +1166,9 @@ initSeqConfig() { while getopts "ept" arg ; do case "${arg}" in - -e) createEmpty=1 ;; - -p) seqProfiles=1 ;; - -t) sourceAlways=1 ;; + e) createEmpty=1 ;; + p) seqProfiles=1 ;; + t) sourceAlways=1 ;; *) ;; esac done