Skip to content

Commit

Permalink
echo var in php
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenherczeg committed Jul 30, 2020
1 parent 7f87091 commit 22d84a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Expand Up @@ -2,8 +2,8 @@
URL="https://api.apify.com/v2/key-value-stores/${APIFY_DEFAULT_KEY_VALUE_STORE_ID}/records/${APIFY_INPUT_KEY}"
curl -L -H "Accept: application/json" "$URL" -o /usr/src/input.json --compressed
cat /usr/src/input.json
SOURCE=$(php -r 'json_decode(file_get_contents("/usr/src/input.json"), true)["source"];')
VERSION_ID=$(php -r 'json_decode(file_get_contents("/usr/src/input.json"), true)["version_id"];')
SOURCE=$(php -r 'echo json_decode(file_get_contents("/usr/src/input.json"), true)["source"];')
VERSION_ID=$(php -r 'echo json_decode(file_get_contents("/usr/src/input.json"), true)["version_id"];')
echo "source: $SOURCE"
echo "version_id: $VERSION_ID"
exakat init -p tmpprj -R "$SOURCE" -v
Expand Down

0 comments on commit 22d84a2

Please sign in to comment.