From 5009f2f302b1693189cdd17c5f1458651d8e102b Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 22 Jun 2025 13:24:55 +1200 Subject: [PATCH] 'Generic Commit' --- getpkg/install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/getpkg/install.sh b/getpkg/install.sh index 8b2d8f1..f96518a 100755 --- a/getpkg/install.sh +++ b/getpkg/install.sh @@ -16,8 +16,16 @@ wget "https://getbin.xyz/${PROJECT}:latest-${ARCH}" -O bootstrap && chmod a+x bo rm ./bootstrap -# shellcheck disable=SC1090 -source ~/.bashrc +GETPKG_PATH="${HOME}/.local/bin/getpkg" + +if [ ! -f "$GETPKG_PATH" ]; then + echo "getpkg not found in $GETPKG_PATH" + exit 1 +fi + VERSION=$(getpkg version) echo "Dropshell tool $VERSION installed" + +# shellcheck disable=SC1090 +source ~/.bashrc