Move newClient () into functions section

This commit is contained in:
Angristan 2018-08-19 01:01:58 +02:00
parent 468a1afa46
commit e4ddb22032

View file

@ -81,13 +81,6 @@ function initialCheck () {
checkOS checkOS
} }
##########################################
############### MAIN ###############
##########################################
initialCheck
function newclient () { function newclient () {
echo "" echo ""
echo "Do you want to protect the configuration file with a password?" echo "Do you want to protect the configuration file with a password?"
@ -152,6 +145,12 @@ function newclient () {
exit exit
} }
##########################################
############### MAIN ###############
##########################################
initialCheck
# Get Internet network interface with default route # Get Internet network interface with default route
NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1) NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)