Update better/stat due to output change in recent git versions.

parent e07d9b06
......@@ -65,15 +65,15 @@ showUsage(){
showGitRepositoryStates(){
echo "Git repository states:"
echo "======================\n"
git status | grep 'working directory clean' > /dev/null && echo " ✓ Better is clean" || echo " ◍ Better is DIRTY"
runIn app "git status" | grep 'working directory clean' > /dev/null && echo " ✓ App is clean" || echo " ◍ App is DIRTY"
runIn builder "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Builder is clean" || echo " ◍ Builder is DIRTY"
runIn inspector "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Inspector is clean" || echo " ◍ Inspector is DIRTY"
runIn themes "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Themes is clean" || echo " ◍ Themes is DIRTY"
runIn content "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Content is clean" || echo " ◍ Content is DIRTY"
runIn drafts/sites "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Drafts/Sites is clean" || echo " ◍ Drafts/Sites is DIRTY"
runIn drafts/trackers "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Drafts/Trackers is clean" || echo " ◍ Drafts/Trackers is DIRTY"
runIn safari "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Safari is clean" || echo " ◍ Safari is DIRTY"
git status | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Better is clean" || echo " ◍ Better is DIRTY"
runIn app "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ App is clean" || echo " ◍ App is DIRTY"
runIn builder "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Builder is clean" || echo " ◍ Builder is DIRTY"
runIn inspector "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Inspector is clean" || echo " ◍ Inspector is DIRTY"
runIn themes "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Themes is clean" || echo " ◍ Themes is DIRTY"
runIn content "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Content is clean" || echo " ◍ Content is DIRTY"
runIn drafts/sites "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Drafts/Sites is clean" || echo " ◍ Drafts/Sites is DIRTY"
runIn drafts/trackers "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Drafts/Trackers is clean" || echo " ◍ Drafts/Trackers is DIRTY"
runIn safari "git status" | grep -E 'working\stree\sclean|working\sdirectory\sclean' > /dev/null && echo " ✓ Safari is clean" || echo " ◍ Safari is DIRTY"
echo ""
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment