fix(bash): remove newlines from git status
This commit is contained in:
parent
7cf578fa3b
commit
feb15c57a9
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue