Skip to content

Commit a732239

Browse files
authored
Merge branch 'main' into binyli/handle-fix
2 parents 93720c1 + be9126c commit a732239

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/deploy/run-remote.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,14 @@ if $USE_DOCKER; then
9797
INNER+=" cd /root/mscclpp;"
9898
INNER+=" export LD_LIBRARY_PATH=/root/mscclpp/build/lib:\\\$LD_LIBRARY_PATH;"
9999
INNER+=" CMD_B64='${CMD_B64}';"
100-
INNER+=" printf '%s' \\\"\\\$CMD_B64\\\" | base64 -d | bash -euxo pipefail"
100+
INNER+=" TMP=\\\$(mktemp);"
101+
INNER+=" printf '%s' \\\"\\\$CMD_B64\\\" | base64 -d > \\\"\\\$TMP\\\";"
102+
INNER+=" bash -euxo pipefail \\\"\\\$TMP\\\";"
103+
INNER+=" rm -f \\\"\\\$TMP\\\""
101104

102105
parallel-ssh -i "${PSSH_COMMON[@]}" \
103106
"sudo docker exec mscclpp-test bash -c \"${INNER}\""
104107
else
105108
parallel-ssh -i "${PSSH_COMMON[@]}" \
106-
"set -euxo pipefail; CMD_B64='${CMD_B64}'; printf '%s' \"\$CMD_B64\" | base64 -d | bash -euxo pipefail"
109+
"set -euxo pipefail; CMD_B64='${CMD_B64}'; TMP=\$(mktemp); printf '%s' \"\$CMD_B64\" | base64 -d > \"\$TMP\"; bash -euxo pipefail \"\$TMP\"; rm -f \"\$TMP\""
107110
fi

0 commit comments

Comments
 (0)