Skip to content

Commit

Permalink
wip3
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll committed Jan 12, 2025
1 parent a2bf282 commit c2cc955
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions syntax-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c2cc955

Please sign in to comment.