Files
dotfiles/functions
Eragos 54857b2b83 test
## To make a commit, type your commit message and press SUPER-ENTER. To cancel
## the commit, close the window. To sign off on the commit, press SUPER-S.

## You may also reference or close a GitHub issue with this commit.  To do so,
## type `#` followed by the `tab` key.  You will be shown a list of issues
## related to the current repo.  You may also type `owner/repo#` plus the `tab`
## key to reference an issue in a different GitHub repo.

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 ""
2016-07-12 00:03:39 +02:00

4.1 KiB