Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Update checkStatus.sh #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demoTools/checkStatus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ rem=`git config --get remote.origin.url`
echo $rem
git remote update &>/dev/null
st=`git status | awk 'NR==2'`
if [ `echo $st | grep -c 'branch is up-to-date'` -eq 1 ]; then
if [ `echo $st | grep -c 'branch is up to date'` -eq 1 ]; then
echo 0
elif [ `echo $st | grep -c 'branch is behind'` -eq 1 ]; then
echo 1
Expand Down