From: Steven Baltakatei Sandoval Date: Wed, 1 Jul 2020 19:57:29 +0000 (+0000) Subject: fix(bkgpslog):Fix incorrectly selected argument X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/2507c3545fd127b7bdfdc3250a52a623723e88b8?ds=sidebyside;hp=--cc fix(bkgpslog):Fix incorrectly selected argument --- 2507c3545fd127b7bdfdc3250a52a623723e88b8 diff --git a/exec/bkgpslog b/exec/bkgpslog index 2eed9ba..c49cee6 100755 --- a/exec/bkgpslog +++ b/exec/bkgpslog @@ -214,8 +214,8 @@ processArguments() { -r | --recipient) # Add 'age' recipient via public key string recPubKeys+=("$2"); vbm "pubkey added:""$2"; shift;; -c | --compress) OPTION_COMPRESS="true"; vbm "DEBUG:Compressed output mode enabled.";; - -z | --time-zone) try setTimeZoneEV "$1";; - -t | --temp-dir) OPTION_TMPDIR="true" && TMP_DIR_PRIORITY="$1";; + -z | --time-zone) try setTimeZoneEV "$2";; + -t | --temp-dir) OPTION_TMPDIR="true" && TMP_DIR_PRIORITY="$2";; *) echoerr "ERROR: Unrecognized argument."; exit 1;; # Handle unrecognized options. esac shift