projects
/
EVA-2020-02.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix(bkgpslog):Arg index error in appendArgTar()
[EVA-2020-02.git]
/
exec
/
bkgpslog
diff --git
a/exec/bkgpslog
b/exec/bkgpslog
index bc716d8b5e7b10fce5c112adf1171202d1b56dee..6c7a456774e227b855724f3086a4076ff19e5d0c 100755
(executable)
--- 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 [ -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
# Set command strings
if ! [ -z "$5" ]; then CMD1="$5"; else CMD1="tee /dev/null "; fi # command string 1
@@
-648,6
+648,9
@@
appendArgTar(){
yell "CMD2:$CMD2"
yell "CMD3:$CMD3"
yell "CMD4:$CMD4"
yell "CMD2:$CMD2"
yell "CMD3:$CMD3"
yell "CMD4:$CMD4"
+ yell "FILENAME:$FILENAME"
+ yell "TAR_PATH:$TAR_PATH"
+ yell "TMP_DIR:$TMP_DIR"
# Write to temporary working dir
echo "$1" | $CMD1 | $CMD2 | $CMD3 | $CMD4 > "$TMP_DIR"/"$FILENAME";
# Write to temporary working dir
echo "$1" | $CMD1 | $CMD2 | $CMD3 | $CMD4 > "$TMP_DIR"/"$FILENAME";