From 0c975f751e44d25e743b0ec5faa51beb3a170033 Mon Sep 17 00:00:00 2001 From: Benjamin Eckel Date: Thu, 26 Sep 2024 15:57:38 -0500 Subject: [PATCH] fix unbound var warnings --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 1c51fcb..e2b16df 100755 --- a/install.sh +++ b/install.sh @@ -41,6 +41,9 @@ is_valid_install_dir() { [[ ":$PATH:" == *":$1:"* ]] && [ -w "$1" ] } +INSTALL_DIR="" +USE_SUDO="" + # Check for common user-writable directories in PATH for dir in "$HOME/bin" "$HOME/.local/bin" "$HOME/.bin"; do if is_valid_install_dir "$dir"; then