Skip to content

Commit

Permalink
fix unbound var warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Sep 26, 2024
1 parent 8f167ec commit 0c975f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c975f7

Please sign in to comment.