Skip to content

Commit

Permalink
Only fetch version if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
cakevm committed Jan 9, 2025
1 parent 24c672b commit 2f95155
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hnc-up/hnc-up
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ main() {

# Install by downloading binaries
if [[ "$HNC_UP_REPO" == "cakevm/huff-neo" && -z "$HNC_UP_BRANCH" && -z "$HNC_UP_COMMIT" ]]; then
HNC_UP_VERSION=$(curl https://api.github.com/repos/$HNC_UP_REPO/releases/latest -s | jq .name -r)
# Fetch the latest release from the Huff Neo repository if no version is provided
if [ -z "$HNC_UP_VERSION" ]; then
HNC_UP_VERSION=$(curl https://api.github.com/repos/$HNC_UP_REPO/releases/latest -s | jq .name -r)
fi

HNC_UP_TAG=$HNC_UP_VERSION

# Normalize versions (handle channels, versions without v prefix
Expand Down

0 comments on commit 2f95155

Please sign in to comment.