mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-08 06:45:38 +00:00
Update entrypoint.sh
This commit is contained in:
parent
8ad8903e21
commit
7d320064dd
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user