attempt to fix eval

This commit is contained in:
Nguyen Huu Thuong
2020-06-12 02:54:32 +02:00
parent f2885cfe87
commit 2a847853e2

View File

@@ -30,9 +30,7 @@ executeSSH() {
# this while read each commands in line and # this while read each commands in line and
# evaluate each line against all environment variables # evaluate each line against all environment variables
echo "TEST $LINES"
while IFS= read -r LINE; do while IFS= read -r LINE; do
echo "TEST $LINE"
LINE=$(echo $LINE) LINE=$(echo $LINE)
COMBINE="&&" COMBINE="&&"
LASTCOMBINE="&&" LASTCOMBINE="&&"
@@ -48,7 +46,7 @@ executeSSH() {
COMBINE="||" COMBINE="||"
fi fi
LINE=$(eval 'echo "$LINE"') LINE=$(eval 'echo "$LINE"')
LINE=$(eval echo "$LINE") LINE=$(eval echo \$"$LINE")
LINE="$LINE $LASTCOMBINE" LINE="$LINE $LASTCOMBINE"
if [ -z "$COMMANDS" ]; then if [ -z "$COMMANDS" ]; then