From d01669a8fe2a23fdbc898451846d387cb8b8c0cc Mon Sep 17 00:00:00 2001 From: tangobravo14 Date: Thu, 7 Mar 2024 14:04:03 +0000 Subject: [PATCH] 17 --- AmRRON-Setup-Script.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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.