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