Remove use of echo and use < instead

This commit is contained in:
Ole Christian Langfjæran
2019-01-10 13:44:30 +01:00
parent 936fa3eefc
commit e45ab7d2b3
2 changed files with 2 additions and 2 deletions

View File

@@ -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/"$//'

View File

@@ -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