From 2a847853e2bd0b68fb457ca87bd33b714b511f59 Mon Sep 17 00:00:00 2001 From: Nguyen Huu Thuong Date: Fri, 12 Jun 2020 02:54:32 +0200 Subject: [PATCH] attempt to fix eval --- entrypoint.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8c0c33f..05d07b5 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,9 +30,7 @@ executeSSH() { # this while read each commands in line and # evaluate each line against all environment variables - echo "TEST $LINES" while IFS= read -r LINE; do - echo "TEST $LINE" LINE=$(echo $LINE) COMBINE="&&" LASTCOMBINE="&&" @@ -48,7 +46,7 @@ executeSSH() { COMBINE="||" fi LINE=$(eval 'echo "$LINE"') - LINE=$(eval echo "$LINE") + LINE=$(eval echo \$"$LINE") LINE="$LINE $LASTCOMBINE" if [ -z "$COMMANDS" ]; then