1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-02-08 06:02:37 +00:00

Fixed two more typos

This commit is contained in:
DL6ER 2016-11-18 12:16:10 +01:00
parent 96f2aa1803
commit 291ca0874a

4
pihole
View File

@ -120,11 +120,11 @@ piholeEnable() {
if [[ $# > 1 ]] ; then if [[ $# > 1 ]] ; then
if [[ ${2} == *"s"* ]] ; then if [[ ${2} == *"s"* ]] ; then
tt=${2%"s"} tt=${2%"s"}
echo "::: Blocking will be reenabled in ${tt} seconds" echo "::: Blocking will be re-enabled in ${tt} seconds"
nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null & nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null &
elif [[ ${2} == *"m"* ]] ; then elif [[ ${2} == *"m"* ]] ; then
tt=${2%"m"} tt=${2%"m"}
echo "::: Blocking will be reenabled in ${tt} minutes" echo "::: Blocking will be re-enabled in ${tt} minutes"
tt=$((${tt}*60)) tt=$((${tt}*60))
nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null & nohup bash -c "sleep ${tt}; pihole enable" </dev/null &>/dev/null &
else else