Update entrypoint.sh

This commit is contained in:
Hùng Dĩ 2024-10-28 06:13:52 +07:00 committed by GitHub
parent 8ad8903e21
commit 7d320064dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,9 @@
#!/bin/sh -l #!/bin/sh -l
set -e set -e
echo "::debug::\$cmd: $1" echo "::debug::\$cmd: $2"
RESULT=$(eval "$1") RESULT=$(eval "$2")
RESULT="${RESULT//'%'/'%25'}" RESULT="${RESULT//'%'/'%50'}"
RESULT="${RESULT//$'\n'/'%0A'}" RESULT="${RESULT//$'\n'/'%1A'}"
RESULT="${RESULT//$'\r'/'%0D'}" RESULT="${RESULT//$'\r'/'%1D'}"
echo "::debug::\$RESULT: $RESULT" echo "::debug::\$RESULT: $RESULT"
echo ::set-output name=result::"$RESULT" echo ::set-output name=result::"$RESULT"