mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-21 19:55:57 +00:00
fix(tools): update git dirty without parameters
This commit is contained in:
@@ -46,7 +46,7 @@ gitdirty()
|
|||||||
if [[ "${d:0:2}" == "--" ]] || [[ "$d" == "vendor" ]] || [[ "$d" == "node_modules" ]]; then
|
if [[ "${d:0:2}" == "--" ]] || [[ "$d" == "vendor" ]] || [[ "$d" == "node_modules" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
cd "$d" > /dev/null
|
cd "$d"
|
||||||
|
|
||||||
# If we have `.git` folder, check it.
|
# If we have `.git` folder, check it.
|
||||||
if [[ -d ".git" ]]; then
|
if [[ -d ".git" ]]; then
|
||||||
@@ -58,7 +58,7 @@ gitdirty()
|
|||||||
printf " %s %s\n" "$ICON" "$(pwd)"
|
printf " %s %s\n" "$ICON" "$(pwd)"
|
||||||
else
|
else
|
||||||
# If it wasn't git repository, check subdirectories.
|
# If it wasn't git repository, check subdirectories.
|
||||||
gitdirtyrepos -- *
|
gitdirtyrepos ./*
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cd .. > /dev/null
|
cd .. > /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user