mirror of
https://gitee.com/mirrors_adrian-thurston/yq.git
synced 2026-01-14 23:43:38 +08:00
supports multiline output
This commit is contained in:
committed by
Mike Farah
parent
6ba8dc75a6
commit
25ba763b08
@@ -2,5 +2,8 @@
|
||||
set -e
|
||||
echo "::debug::\$cmd: $1"
|
||||
RESULT=$(eval "$1")
|
||||
RESULT="${RESULT//'%'/'%25'}"
|
||||
RESULT="${RESULT//$'\n'/'%0A'}"
|
||||
RESULT="${RESULT//$'\r'/'%0D'}"
|
||||
echo "::debug::\$RESULT: $RESULT"
|
||||
echo ::set-output name=result::"$RESULT"
|
||||
|
||||
Reference in New Issue
Block a user