From: Steven Baltakatei Sandoval Date: Thu, 2 Jul 2020 01:10:02 +0000 (+0000) Subject: fix(bkgpslog):Arg index error in appendArgTar() X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/a71feeb06549521133e3f33a1e8be9efffb4f37a?ds=inline;hp=fc371314ffe9a2b38ab8d5367261175c8731cdbf fix(bkgpslog):Arg index error in appendArgTar() --- diff --git a/exec/bkgpslog b/exec/bkgpslog index 83bdc7a..6c7a456 100755 --- a/exec/bkgpslog +++ b/exec/bkgpslog @@ -635,7 +635,7 @@ appendArgTar(){ if [ -f "$3" ]; then TAR_PATH="$3"; else yell "ERROR:Tar archive arg not a file."; exit 1; fi # Check temp dir arg - if ! [ -z "$4" ]; then TMP_DIR="$3"; else yell "ERROR:No temporary working dir set."; exit 1; fi + if ! [ -z "$4" ]; then TMP_DIR="$4"; else yell "ERROR:No temporary working dir set."; exit 1; fi # Set command strings if ! [ -z "$5" ]; then CMD1="$5"; else CMD1="tee /dev/null "; fi # command string 1