added prompt for users to run git pull on their repository

This commit is contained in:
tangobravo14
2024-03-07 14:33:36 +00:00
parent 3e3c324ed1
commit 948643de90
8 changed files with 73 additions and 9 deletions
+21 -3
View File
@@ -1,9 +1,9 @@
#!/bin/bash
################################################################################
################################################################################
####################### AmRRON Vara Setup v.0.76 #########################
####################### AmRRON Vara Setup v.0.8 #########################
####################### Created by TB-14 #########################
####################### 05 Mar 2024 #########################
####################### 07 Mar 2024 #########################
################################################################################
################################################################################
@@ -77,8 +77,25 @@ SOURCE="${BASH_SOURCE[0]}"
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
#echo "$DIR"
#Set image location
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
git pull
in the setup-scripts directory and then relaunch the scripts. 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}
}
# Create a error function to make life easier later on
function errors() {
@@ -438,6 +455,7 @@ exit 1
set_screen_size
check_repo_version
confirm_os
primer_menu
if [[ $PLAT = Linuxmint ]]; then