mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 22:45:39 +08:00
Remove use of echo and use < instead
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
|
||||
echo "${GITHUB_EVENT_PATH}" | "${BASEDIR}"/JSON.sh | grep '\["deployment","environment"]' | cut -f2 | sed -e 's/^"//' -e 's/"$//'
|
||||
"${BASEDIR}"/JSON.sh < "${GITHUB_EVENT_PATH}" | grep '\["deployment","environment"]' | cut -f2 | sed -e 's/^"//' -e 's/"$//'
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
|
||||
echo "${GITHUB_EVENT_PATH}" | "${BASEDIR}"/JSON.sh | grep '\["deployment","id"]' | cut -f2
|
||||
"${BASEDIR}"/JSON.sh < "${GITHUB_EVENT_PATH}" | grep '\["deployment","id"]' | cut -f2
|
||||
Reference in New Issue
Block a user