Skip to content

Commit

Permalink
fix: missing download_link variable
Browse files Browse the repository at this point in the history
It was because of a partial commit, sorry. I'm working on
removing the version number string limit to enable e.g.
`master`.
  • Loading branch information
ZoomTen committed Jun 25, 2024
1 parent ffdb85e commit 2515774
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rgbenv
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
RGBDS_GIT="https://github.com/gbdev/rgbds"

# The version number is directly appended after these variables
RGBDS_DOWNLOAD_BASE="https://api.github.com/repos/gbdev/rgbds/tarball/v"
RGBDS_DOWNLOAD_BASE="https://api.github.com/repos/gbdev/rgbds/tarball/"
RGBDS_PREFIX="rgbds-"

# --------------- Conditional defines -------------------------------------------------
Expand Down Expand Up @@ -303,6 +303,12 @@ _install () {

local version=$1
local got_version=0
local download_link
if [[ "$version" =~ ^[0-9] ]]; then
download_link="${RGBDS_DOWNLOAD_BASE}v${version}"
else
download_link="${RGBDS_DOWNLOAD_BASE}${version}"
fi

checkverinstall "$version"

Expand Down

0 comments on commit 2515774

Please sign in to comment.