Standardize function declaration

There were no fewer than three styles of function declaration going
on in these files, so I attempted to standardize them to the typical

myfucn() {
}

style.
This commit is contained in:
Marcus Hildum 2016-10-19 19:47:45 -07:00
parent 16e4f79f09
commit 28eeaf201b
9 changed files with 55 additions and 63 deletions

View file

@ -14,7 +14,7 @@
latest=false
current=false
normalOutput(){
normalOutput() {
piholeVersion=$(cd /etc/.pihole/ && git describe --tags --abbrev=0)
webVersion=$(cd /var/www/html/admin/ && git describe --tags --abbrev=0)
@ -25,7 +25,7 @@ normalOutput(){
echo "::: Web-Admin version is $webVersion (Latest version is $webVersionLatest)"
}
webOutput(){
webOutput() {
for var in "$@"
do
case "$var" in
@ -48,7 +48,7 @@ webOutput(){
fi
}
coreOutput(){
coreOutput() {
for var in "$@"
do
case "$var" in
@ -71,8 +71,7 @@ coreOutput(){
fi
}
helpFunc()
{
helpFunc() {
echo ":::"
echo "::: Show Pi-hole/Web Admin versions"
echo ":::"
@ -99,4 +98,4 @@ do
"-p" | "--pihole" ) shift; coreOutput "$@" ;;
"-h" | "--help" ) helpFunc;;
esac
done
done