fix: local keyword invalid outside function, use plain variable
This commit is contained in:
parent
369181e705
commit
42c85f4468
@ -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 "")
|
EXISTING_REMOTE=$(git -C "$NVIM_CONFIG" remote get-url "$REMOTE_NAME" 2>/dev/null || echo "")
|
||||||
if [ "$EXISTING_REMOTE" = "$REPO" ]; then
|
if [ "$EXISTING_REMOTE" = "$REPO" ]; then
|
||||||
echo "NvChad config already installed — pulling latest..."
|
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
|
if ! git -C "$NVIM_CONFIG" diff --quiet || ! git -C "$NVIM_CONFIG" diff --cached --quiet; then
|
||||||
git -C "$NVIM_CONFIG" stash
|
git -C "$NVIM_CONFIG" stash
|
||||||
stashed=true
|
stashed=true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user