Skip to content

Commit

Permalink
Only re-check pnpm command after reloading .zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
toebeann committed Feb 9, 2024
1 parent 4fc977c commit d32dff0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions gib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@
set +e # ignore errors in the .zshrc, we just need the path to be updated
source ~/.zshrc
set -e # re-enable exit on err
fi

if ! command -v pnpm >/dev/null; then
echo "pnpm command not found in PATH"
echo "Please reload your terminal, then run this script again"
exit 1
# if pnpm still not in path after reloading .zshrc, exit with error
if ! command -v pnpm >/dev/null; then
echo "pnpm command not found in PATH"
echo "Please reload your terminal, then run this script again"
exit 1
fi
fi

# ensure node v20 is in use
Expand Down
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.8",
"version": "0.1.9",
"description": "A CLI utility for automating the installation of BepInEx",
"license": "ISC",
"author": "Tobey Blaber",
Expand Down

0 comments on commit d32dff0

Please sign in to comment.