Skip to content

Commit

Permalink
Simplify gib.sh to launch via pnpm dlx instead of cloning to `~/,…
Browse files Browse the repository at this point in the history
…gib` then launching
  • Loading branch information
toebeann committed Jan 31, 2024
1 parent f9da59b commit 0e6ffb0
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions gib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,6 @@
pnpm env use --global 20 >/dev/null

# ensure gib is up-to-date, then launch it
echo "Fetching gib..."

if [ -n "${GIB_VERSION}" ]; then
version="${GIB_VERSION}"
else
version="$(curl -s https://api.github.com/repos/toebeann/gib/releases/latest | pnpm -s dlx node-jq .tag_name | tr -d \" )"
fi

if [ -z "${version}" ]; then
version="#${version}"
else
version=""
fi

# get latest release version from github
pnpm -s dlx tiged -fm=tar toebeann/gib${version} ~/.gib
echo "Fetching dependencies..."
pnpm -C ~/.gib install
echo "Launching gib..."
pnpm -C ~/.gib start
echo "Preparing and launching gib..."
pnpm -s --package=tsx --package=toebeann/gib\#semver:^0.1.4 dlx gib
} # this ensures the entire script is downloaded #

0 comments on commit 0e6ffb0

Please sign in to comment.