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