fixed helpFunc 1

This commit is contained in:
Mayur Raiturkar 2016-04-17 18:21:32 +05:30
parent 2d03616c10
commit b58519b974
1 changed files with 4 additions and 3 deletions

View File

@ -10,9 +10,6 @@
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
if [[ $# = 0 ]]; then
helpFunc
fi
#globals
basename=pihole
@ -65,6 +62,10 @@ function helpFunc()
exit 1
}
if [[ $# = 0 ]]; then
helpFunc
fi
function HandleOther(){
#check validity of domain
validDomain=$(echo "$1" | perl -ne'print if /\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/')