From 2d88e23af04df8cdc9c3a755da2b13ae1492daf3 Mon Sep 17 00:00:00 2001 From: Nguyen Huu Thuong Date: Fri, 12 Jun 2020 02:22:01 +0200 Subject: [PATCH] debug --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9f127c9..05881a2 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,7 +22,7 @@ createKeyFile() { executeSSH() { local USEPASS=$1 - local LINES=$(echo -e $2) + local LINES=$2 local COMMAND="" # holds all commands separated by semi-colon or keep "&&" @@ -31,6 +31,7 @@ executeSSH() { # this while read each commands in line and # evaluate each line against all environment variables while IFS= read -r LINE; do + echo "TEST $LINE" LINE=$(echo $LINE) COMBINE="&&" LASTCOMBINE="&&" @@ -48,7 +49,6 @@ executeSSH() { LINE=$(eval 'echo "$LINE"') LINE=$(eval echo "$LINE") LINE="$LINE $LASTCOMBINE" - echo $LINE if [ -z "$COMMANDS" ]; then COMMANDS="$LINE" @@ -78,7 +78,7 @@ executeSSH() { executeSCP() { local USEPASS=$1 - local LINES=$(echo -e $2) + local LINES=$2 local COMMAND= CMD="scp"