This commit is contained in:
tangobravo14
2024-03-07 12:55:40 +00:00
parent 4694e1261f
commit 0c795dd59f
+8 -2
View File
@@ -129,13 +129,19 @@ echo "${ERRCODE}" >> /tmp/failures
function check_repo_version() {
cd $DIR && git remote set-url origin https://gitlab.com/amrron/setup-scripts.git/
GITSTATUS=$(git fetch --dry-run 2>/dev/null)
GITSTATUS=$(git fetch --dry-run &2>/dev/null)
if [[$GITSTATUS == '']]; then
if [[ $GITSTATUS == '' ]]; then
echo 'Your repo is up to date'
else
echo $GITSTATUS
echo
echo
echo "Your repo is out of date. Run the command 'git pull' in the setup-scripts \n
directory in order to pull the most recent updates and fixes for the script and then \n
re-run the script."
fi