diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index c10d4d1..b9bf47d 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -127,7 +127,7 @@ echo "${ERRCODE}" >> /tmp/failures ### Check if scripts are up to date -function check_repo_version() { +function check_repo_version_testing() { cd $DIR && git remote set-url origin https://gitlab.com/amrron/setup-scripts.git/ GITSTATUS=$(git fetch --dry-run | grep -o testing) @@ -144,6 +144,25 @@ if [[ $GITSTATUS == "testing" ]]; then fi +} + +function check_repo_version() { + + echo "To ensure your scripts are up to date with current features and fixes, Quit this installer and run the command \n + \n + git pull\n + \n + in the setup-scripts directory and then relaunch the scripts.\n + If your repo is up to date, click continue." | yad \ +--image=$DIR/images/corps-icon.png \ +--center \ +--text-info \ +--wrap \ +--button="Quit:1" \ +--button="Continue:0" \ +--title "Ensure your scripts are up to date." \ +${r} ${c} + } # Set variables used in the script.