This commit is contained in:
tangobravo14
2024-03-07 12:37:37 +00:00
parent f784b2abbe
commit 4694e1261f
+6 -2
View File
@@ -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
}