fix(bash): deal with newlines better
This commit is contained in:
parent
1b051c8266
commit
1f9e3512b6
1 changed files with 4 additions and 3 deletions
|
@ -6,10 +6,11 @@
|
||||||
grep -v -e "On branch" \
|
grep -v -e "On branch" \
|
||||||
-e "up to date" \
|
-e "up to date" \
|
||||||
-e 'use "git' \
|
-e 'use "git' \
|
||||||
-e "nothing to commit" |
|
-e "nothing to commit")
|
||||||
sed '/^$/d')
|
|
||||||
|
|
||||||
if [ "$GIT" != "" ]; then
|
CHECK=$(echo "$GIT" | sed '/^$/d')
|
||||||
|
|
||||||
|
if [ "$CHECK" != "" ]; then
|
||||||
echo "$GIT"
|
echo "$GIT"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue