fix(bkgpslog):Arg index error in appendArgTar()
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Thu, 2 Jul 2020 01:10:02 +0000 (01:10 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Thu, 2 Jul 2020 01:10:02 +0000 (01:10 +0000)
exec/bkgpslog

index 83bdc7a6f64da4515f82d2d42583519c36219da8..6c7a456774e227b855724f3086a4076ff19e5d0c 100755 (executable)
@@ -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