From 08877c02835aaf0782b18f551d7bf184c8371e39 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Tue, 12 Jun 2018 16:01:11 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index 21697f2..415a1ea 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -11,7 +11,6 @@ # a couple of times. if it still is not working see line 24-25 #known bugs: see line 24-25 # -Versi0n=$( echo 7 ) # ~~~~~~~~~~ Environment Setup ~~~~~~~~~~ # NORMAL=$(echo "\033[m") MENU=$(echo "\033[36m") #Blue @@ -1024,6 +1023,16 @@ done } ############################## Flags ############################### clear +Versi0n=$( echo "7" ) +update=$( curl -s https://github.com/PierreGode/Linux-Active-Directory-join-script/blob/master/ADconnection.sh | grep -i Versi0n | awk '{print $10}' ) +if [ "$update" -gt "$Version" ] +then +echo "Updating ADconnection" +sleep 1 +git pull +else +echo "ADconnection is up to date" +fi while test $# -gt 0; do case "$1" in -h|--help)