Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Better
Better
Commits
fe751152
Unverified
Commit
fe751152
authored
Nov 11, 2016
by
Aral Balkan
Browse files
Update better/stat due to output change in recent git versions.
parent
e07d9b06
Changes
1
Hide whitespace changes
Inline
Side-by-side
better/stat
View file @
fe751152
...
...
@@ -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\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Better is clean"
||
echo
" ◍ Better is DIRTY"
runIn app
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ App is clean"
||
echo
" ◍ App is DIRTY"
runIn builder
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Builder is clean"
||
echo
" ◍ Builder is DIRTY"
runIn inspector
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Inspector is clean"
||
echo
" ◍ Inspector is DIRTY"
runIn themes
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Themes is clean"
||
echo
" ◍ Themes is DIRTY"
runIn content
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Content is clean"
||
echo
" ◍ Content is DIRTY"
runIn drafts/sites
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Drafts/Sites is clean"
||
echo
" ◍ Drafts/Sites is DIRTY"
runIn drafts/trackers
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Drafts/Trackers is clean"
||
echo
" ◍ Drafts/Trackers is DIRTY"
runIn safari
"git status"
|
grep
-E
'working
\stree\sclean|working\s
directory
\s
clean'
>
/dev/null
&&
echo
" ✓ Safari is clean"
||
echo
" ◍ Safari is DIRTY"
echo
""
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment