mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Fix chronometer refresh incorrectly reading the long argument sleep time
`-r` worked, but `--refresh` did not. Fixes #2703 Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
cae61614f4
commit
422680ee9f
1 changed files with 1 additions and 2 deletions
|
@ -463,8 +463,7 @@ chronoFunc() {
|
||||||
# Get refresh number
|
# Get refresh number
|
||||||
if [[ "$*" == *"-r"* ]]; then
|
if [[ "$*" == *"-r"* ]]; then
|
||||||
num="$*"
|
num="$*"
|
||||||
num="${num/*-r /}"
|
num="${num/*-r* /}"
|
||||||
num="${num/ */}"
|
|
||||||
num_str="Refresh set for every $num seconds"
|
num_str="Refresh set for every $num seconds"
|
||||||
else
|
else
|
||||||
num_str=""
|
num_str=""
|
||||||
|
|
Loading…
Reference in a new issue