fix(bash): remove newlines from git status

This commit is contained in:
matt1432 2023-12-10 15:42:32 -05:00
parent 7cf578fa3b
commit feb15c57a9

View file

@ -2,10 +2,16 @@
(
cd ~/.nix || exit 1
git fetch --all > /dev/null
git -c color.status=always status |
grep -v -e branch \
-e 'use "git' \
-e "nothing to commit"
GIT=$(git -c color.status=always status |
grep -v -e branch \
-e 'use "git' \
-e "nothing to commit" |
sed '/^$/d')
if [ "$GIT" != "" ]; then
echo "$GIT"
echo
fi
)
# Pokemon Sprite