Skip to content

Commit

Permalink
Add back the ability to specify specific gib version via GIB_VERSION …
Browse files Browse the repository at this point in the history
…environment variable
  • Loading branch information
toebeann committed Jan 31, 2024
1 parent 0c0f25b commit 7c36ebb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion gib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@
echo "Preparing node..."
pnpm env use --global 20 >/dev/null

if [ -n "${GIB_VERSION}" ]; then
version="${GIB_VERSION}"
else
version="^0.1.4"
fi

# ensure gib is up-to-date, then launch it
echo "Preparing and launching gib..."
pnpm -s --package=tsx --package=toebeann/gib\#semver:^0.1.4 dlx gib
pnpm -s --package=tsx --package=toebeann/gib\#semver:${version} dlx gib
} # this ensures the entire script is downloaded #
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "gib",
"version": "0.1.4",
"version": "0.1.5",
"description": "A CLI utility for automating the installation of BepInEx",
"license": "ISC",
"author": "Tobey Blaber",
Expand Down

0 comments on commit 7c36ebb

Please sign in to comment.