diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 364ff6a..8af6794 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -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 }