From 3498c6b739fa8920f51cf2271af97c81814edced Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 13 Jul 2023 17:07:18 +0300 Subject: [PATCH] fix(tools): update git dirty without parameters --- local/bin/git-dirty | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/bin/git-dirty b/local/bin/git-dirty index 75fed77..b1247e0 100755 --- a/local/bin/git-dirty +++ b/local/bin/git-dirty @@ -46,7 +46,7 @@ gitdirty() if [[ "${d:0:2}" == "--" ]] || [[ "$d" == "vendor" ]] || [[ "$d" == "node_modules" ]]; then echo "" else - cd "$d" > /dev/null + cd "$d" # If we have `.git` folder, check it. if [[ -d ".git" ]]; then @@ -58,7 +58,7 @@ gitdirty() printf " %s %s\n" "$ICON" "$(pwd)" else # If it wasn't git repository, check subdirectories. - gitdirtyrepos -- * + gitdirtyrepos ./* fi fi cd .. > /dev/null