From 7d320064ddfae31ea0d3bd0ea7d789bf89f2a27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B9ng=20D=C4=A9?= Date: Mon, 28 Oct 2024 06:13:52 +0700 Subject: [PATCH] Update entrypoint.sh --- github-action/entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"