From 6a17e8e74bcfbd88dab3504ba01e726266b3e001 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Wed, 1 Jul 2020 20:04:26 +0000 Subject: [PATCH 1/1] fix(bkgpslog):Add missing shifts in processArguments() --- exec/bkgpslog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/bkgpslog b/exec/bkgpslog index eeed3a6..d0dde14 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 "$2";; - -t | --temp-dir) OPTION_TMPDIR="true" && TMP_DIR_PRIORITY="$2";; + -z | --time-zone) try setTimeZoneEV "$2"; shift;; + -t | --temp-dir) OPTION_TMPDIR="true" && TMP_DIR_PRIORITY="$2"; shift;; *) echoerr "ERROR: Unrecognized argument: $1"; echoerr "STATUS:All arguments:$*"; exit 1;; # Handle unrecognized options. esac shift -- 2.30.2