From a18f29419c566c1e21c6dfbda13a50b2720203d2 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Feb 2026 01:24:29 +0000 Subject: [PATCH] Fix BASH_SOURCE[0] error in zsh script Replace bash-specific BASH_SOURCE[0] with $0, which is the correct way to get the current script path in zsh. https://claude.ai/code/session_01VUqhAw3sgVSX5soHQXtk2Y --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5d69b31..687ff02 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ set -euo pipefail repo_url="https://github.com/MatthewDolan/dotfiles.git" # Determine where this script lives on disk -script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +script_dir="$(cd "$(dirname "$0")" && pwd)" # If the script isn't part of a git repository, clone and re-run from ~/.dotfiles if ! git -C "${script_dir}" rev-parse --is-inside-work-tree >/dev/null 2>&1; then