mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
3
This commit is contained in:
@@ -130,9 +130,13 @@ echo "${ERRCODE}" >> /tmp/failures
|
||||
function check_repo_version() {
|
||||
|
||||
|
||||
GITSTATUS=$(cd $DIR && git status | grep 'Your branch is up to date')
|
||||
GITSTATUS=$(git fetch --dry-run 2>/dev/null)
|
||||
|
||||
echo $GITSTATUS
|
||||
if [[$GITSTATUS == '']]; then
|
||||
echo 'Your repo is up to date'
|
||||
else
|
||||
echo $GITSTATUS
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user