From 0c795dd59fa5a602467a31127ed79427894c6e1d Mon Sep 17 00:00:00 2001 From: tangobravo14 Date: Thu, 7 Mar 2024 12:55:40 +0000 Subject: [PATCH] 5 --- AmRRON-Setup-Script.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 8af6794..6b68822 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -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