fix: local keyword invalid outside function, use plain variable

This commit is contained in:
Paul Trowbridge 2026-05-11 20:04:54 -04:00
parent 369181e705
commit 42c85f4468

View File

@ -46,7 +46,7 @@ if [ -d "$NVIM_CONFIG/.git" ]; then
EXISTING_REMOTE=$(git -C "$NVIM_CONFIG" remote get-url "$REMOTE_NAME" 2>/dev/null || echo "")
if [ "$EXISTING_REMOTE" = "$REPO" ]; then
echo "NvChad config already installed — pulling latest..."
local stashed=false
stashed=false
if ! git -C "$NVIM_CONFIG" diff --quiet || ! git -C "$NVIM_CONFIG" diff --cached --quiet; then
git -C "$NVIM_CONFIG" stash
stashed=true