1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

fix indentations

This commit is contained in:
Justin Theberge 2016-04-08 10:14:17 -04:00
parent bdfc86f850
commit 9a4c5cef86
2 changed files with 19 additions and 23 deletions

View File

@ -61,7 +61,7 @@ function helpFunc()
echo "::: -f, --force Force updating of the hosts files, even if there are no changes"
echo "::: -q, --quiet output is less verbose"
echo "::: -h, --help Show this help dialog"
echo "::: -l, --list Display your blacklisted domains"
echo "::: -l, --list Display your blacklisted domains"
exit 1
}
@ -175,16 +175,14 @@ function Reload() {
}
function DisplayBlist() {
clear
echo -e " Displaying Gravity Affected Domains \n"
GRD="$blacklist"
count=1
while IFS= read -r RD
do
echo "${count}: $RD"
count=$((count+1))
done < "$blacklist"
clear
echo -e " Displaying Gravity Affected Domains \n"
count=1
while IFS= read -r AD
do
echo "${count}: $AD"
count=$((count+1))
done < "$blacklist"
}
###################################################

View File

@ -60,7 +60,7 @@ function helpFunc()
echo "::: -f, --force Force updating of the hosts files, even if there are no changes"
echo "::: -q, --quiet output is less verbose"
echo "::: -h, --help Show this help dialog"
echo "::: -l, --list Display your whitelisted domains"
echo "::: -l, --list Display your whitelisted domains"
exit 1
}
@ -188,16 +188,14 @@ function Reload() {
}
function DisplayWlist() {
clear
echo -e " Displaying Gravity Resistant Domains \n"
GRD="$whitelist"
count=1
while IFS= read -r RD
do
echo "${count}: $RD"
count=$((count+1))
done < "$whitelist"
clear
echo -e " Displaying Gravity Resistant Domains \n"
count=1
while IFS= read -r RD
do
echo "${count}: $RD"
count=$((count+1))
done < "$whitelist"
}
###################################################
@ -209,7 +207,7 @@ do
"-d" | "--delmode" ) addmode=false;;
"-f" | "--force" ) force=true;;
"-q" | "--quiet" ) versbose=false;;
"-h" | "--help" ) helpFunc;;
"-h" | "--help" ) helpFunc;;
"-l" | "--list" ) DisplayWlist;;
* ) HandleOther "$var";;
esac