diff --git a/github-action/entrypoint.sh b/github-action/entrypoint.sh index 8ce2a3ad..e94e30a4 100755 --- a/github-action/entrypoint.sh +++ b/github-action/entrypoint.sh @@ -1,9 +1,9 @@ #!/bin/sh -l set -e -echo "::debug::\$cmd: $1" -RESULT=$(eval "$1") -RESULT="${RESULT//'%'/'%25'}" -RESULT="${RESULT//$'\n'/'%0A'}" -RESULT="${RESULT//$'\r'/'%0D'}" +echo "::debug::\$cmd: $2" +RESULT=$(eval "$2") +RESULT="${RESULT//'%'/'%50'}" +RESULT="${RESULT//$'\n'/'%1A'}" +RESULT="${RESULT//$'\r'/'%1D'}" echo "::debug::\$RESULT: $RESULT" echo ::set-output name=result::"$RESULT"