mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 14:34:44 +00:00
fix indentations
This commit is contained in:
parent
bdfc86f850
commit
9a4c5cef86
2 changed files with 19 additions and 23 deletions
|
@ -61,7 +61,7 @@ function helpFunc()
|
||||||
echo "::: -f, --force Force updating of the hosts files, even if there are no changes"
|
echo "::: -f, --force Force updating of the hosts files, even if there are no changes"
|
||||||
echo "::: -q, --quiet output is less verbose"
|
echo "::: -q, --quiet output is less verbose"
|
||||||
echo "::: -h, --help Show this help dialog"
|
echo "::: -h, --help Show this help dialog"
|
||||||
echo "::: -l, --list Display your blacklisted domains"
|
echo "::: -l, --list Display your blacklisted domains"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,16 +175,14 @@ function Reload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function DisplayBlist() {
|
function DisplayBlist() {
|
||||||
clear
|
clear
|
||||||
echo -e " Displaying Gravity Affected Domains \n"
|
echo -e " Displaying Gravity Affected Domains \n"
|
||||||
|
count=1
|
||||||
GRD="$blacklist"
|
while IFS= read -r AD
|
||||||
count=1
|
do
|
||||||
while IFS= read -r RD
|
echo "${count}: $AD"
|
||||||
do
|
count=$((count+1))
|
||||||
echo "${count}: $RD"
|
done < "$blacklist"
|
||||||
count=$((count+1))
|
|
||||||
done < "$blacklist"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
###################################################
|
###################################################
|
||||||
|
|
|
@ -60,7 +60,7 @@ function helpFunc()
|
||||||
echo "::: -f, --force Force updating of the hosts files, even if there are no changes"
|
echo "::: -f, --force Force updating of the hosts files, even if there are no changes"
|
||||||
echo "::: -q, --quiet output is less verbose"
|
echo "::: -q, --quiet output is less verbose"
|
||||||
echo "::: -h, --help Show this help dialog"
|
echo "::: -h, --help Show this help dialog"
|
||||||
echo "::: -l, --list Display your whitelisted domains"
|
echo "::: -l, --list Display your whitelisted domains"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,16 +188,14 @@ function Reload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function DisplayWlist() {
|
function DisplayWlist() {
|
||||||
clear
|
clear
|
||||||
echo -e " Displaying Gravity Resistant Domains \n"
|
echo -e " Displaying Gravity Resistant Domains \n"
|
||||||
|
count=1
|
||||||
GRD="$whitelist"
|
while IFS= read -r RD
|
||||||
count=1
|
do
|
||||||
while IFS= read -r RD
|
echo "${count}: $RD"
|
||||||
do
|
count=$((count+1))
|
||||||
echo "${count}: $RD"
|
done < "$whitelist"
|
||||||
count=$((count+1))
|
|
||||||
done < "$whitelist"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
###################################################
|
###################################################
|
||||||
|
@ -209,7 +207,7 @@ do
|
||||||
"-d" | "--delmode" ) addmode=false;;
|
"-d" | "--delmode" ) addmode=false;;
|
||||||
"-f" | "--force" ) force=true;;
|
"-f" | "--force" ) force=true;;
|
||||||
"-q" | "--quiet" ) versbose=false;;
|
"-q" | "--quiet" ) versbose=false;;
|
||||||
"-h" | "--help" ) helpFunc;;
|
"-h" | "--help" ) helpFunc;;
|
||||||
"-l" | "--list" ) DisplayWlist;;
|
"-l" | "--list" ) DisplayWlist;;
|
||||||
* ) HandleOther "$var";;
|
* ) HandleOther "$var";;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue