Update ADconnection.sh

This commit is contained in:
PierreGode 2018-06-12 16:06:17 +02:00 committed by GitHub
parent 08877c0283
commit edeb4feaf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1023,16 +1023,15 @@ 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
#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"
#git pull
#else
#echo "ADconnection is up to date"
#fi
while test $# -gt 0; do
case "$1" in
-h|--help)