diff --git a/functions b/functions index 52bf5ee..a8717f3 100644 --- a/functions +++ b/functions @@ -3,7 +3,7 @@ udot() { info=$(git --no-pager log --pretty="%h by %an <%ae> on %cd" -1 --abbrev-commit) local=$(git --no-pager log --pretty="%H" -1) remote=$(git ls-remote origin | awk "/HEAD/ {print \$1}") - gstatus=$(git status -s) + gstatus=$(git status --porcelain) echo -e "" echo -e ' ____ U ___ u _____ _____ _ U _____ u ____ ' @@ -17,7 +17,7 @@ udot() { echo -e "$info" echo -e "" - if [ "$status" != "" ]; then + if [ -n "$status" ]; then echo -e "Local changes:" echo -e "$gstatus" echo -e ""