diff --git a/syntax-tests.sh b/syntax-tests.sh index 4743111..f2cba4b 100755 --- a/syntax-tests.sh +++ b/syntax-tests.sh @@ -12,11 +12,12 @@ resolve_build() { local dev_check_url="https://www.sublimetext.com/updates/4/dev_update_check" local build="$INPUT_BUILD" + command -v jq >/dev/null if [[ $INPUT_BUILD == stable ]]; then - curl -q "$stable_check_url" | jq '.latest_version' | read -r build + curl -s "$stable_check_url" | jq '.latest_version' | read -r build echo >&2 "Latest stable build: $build" elif [[ $INPUT_BUILD == latest ]]; then - curl -q "$dev_check_url" | jq '.latest_version' | read -r build + curl -s "$dev_check_url" | jq '.latest_version' | read -r build echo >&2 "Latest dev build: $build" fi echo "$build"