fix(bash): tell if not up to date

This commit is contained in:
matt1432 2023-12-10 15:45:56 -05:00
parent feb15c57a9
commit 1b051c8266

View file

@ -3,7 +3,8 @@
cd ~/.nix || exit 1 cd ~/.nix || exit 1
git fetch --all > /dev/null git fetch --all > /dev/null
GIT=$(git -c color.status=always status | GIT=$(git -c color.status=always status |
grep -v -e branch \ grep -v -e "On branch" \
-e "up to date" \
-e 'use "git' \ -e 'use "git' \
-e "nothing to commit" | -e "nothing to commit" |
sed '/^$/d') sed '/^$/d')