mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
added prompt for users to run git pull on their repository
This commit is contained in:
+22
-2
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
################################################################################
|
||||
################# AmRRON PAT Setup and Alias Manager v0.5.3 ##################
|
||||
################# AmRRON PAT Setup and Alias Manager v0.6 ##################
|
||||
################# Created by TB-14 ##################
|
||||
################# 21 OCT 22 ##################
|
||||
################# 07 Mar 24 ##################
|
||||
################################################################################
|
||||
################################################################################
|
||||
|
||||
@@ -39,6 +39,25 @@ SOURCE="${BASH_SOURCE[0]}"
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
#echo "$DIR"
|
||||
|
||||
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}
|
||||
|
||||
}
|
||||
|
||||
function dep_check() {
|
||||
|
||||
@@ -366,5 +385,6 @@ fi
|
||||
|
||||
|
||||
set_screen_size
|
||||
check_repo_version
|
||||
dep_check
|
||||
skip_setup
|
||||
|
||||
Reference in New Issue
Block a user