attempt to fix eval

pull/1/head
Nguyen Huu Thuong 5 years ago
parent f2885cfe87
commit 2a847853e2

@ -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

Loading…
Cancel
Save