From d32dff08dd196eae8e5e35f5c74dfebca249f3bc Mon Sep 17 00:00:00 2001 From: Tobey Blaber Date: Fri, 9 Feb 2024 13:29:37 +0000 Subject: [PATCH] Only re-check pnpm command after reloading `.zshrc` --- gib.sh | 11 ++++++----- package.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gib.sh b/gib.sh index 934f742..c875f1b 100644 --- a/gib.sh +++ b/gib.sh @@ -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 diff --git a/package.json b/package.json index e537829..0d4f6f0 100644 --- a/package.json +++ b/package.json @@ -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",