From 980971a360ab33081cc0b0442cb9b749fedceffa Mon Sep 17 00:00:00 2001 From: Max Barrass Date: Tue, 12 May 2020 02:07:26 +1000 Subject: [PATCH] use eval to run test command --- scripts/github/github_container_verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/github/github_container_verify.sh b/scripts/github/github_container_verify.sh index 813564c..158bb79 100755 --- a/scripts/github/github_container_verify.sh +++ b/scripts/github/github_container_verify.sh @@ -16,7 +16,7 @@ echo ">>> VERIFY BUILD CONTAINER <<<" DIR=$(mktemp -d) echo "TEST_COMMAND:${TEST_COMMAND}" echo "TEST:docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c 'echo \$(\${TEST_COMMAND} 2>&1) | grep -q -e ${TEST_COMMAND_VERIFY} && echo true || echo false'" -export CONTAINER_OUTPUT=$(docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c "echo \$(\${TEST_COMMAND} 2>&1) | grep -q -e \"${TEST_COMMAND_VERIFY}\" && echo true || echo false") +export CONTAINER_OUTPUT=$(docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c "eval \${TEST_COMMAND} 2>&1 | grep -q -e \"${TEST_COMMAND_VERIFY}\" && echo true || echo false") echo ::set-env name=CONTAINER_OUTPUT::$CONTAINER_OUTPUT echo ::set-output name=CONTAINER_OUTPUT::$CONTAINER_OUTPUT echo "CONTAINER_OUTPUT:${CONTAINER_OUTPUT}"