mirror of
https://gitee.com/jack_whh/ssh-scp-ssh-pipelines.git
synced 2026-03-09 22:42:55 +08:00
attempt to fix eval
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user