watchcat: make compatible with updated busybox ash array handling (fixes #7148)
authorNuno Goncalves <nunojpg@gmail.com>
Wed, 10 Oct 2018 06:15:23 +0000 (08:15 +0200)
committerNuno Goncalves <nunojpg@gmail.com>
Wed, 10 Oct 2018 06:21:08 +0000 (07:21 +0100)
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
utils/watchcat/files/watchcat.sh

index 0fda123e9e2419e12bb8c6e787a777ad1158ba55..5b157de3d1f2f2c846836d02b044cd54efe6c017 100644 (file)
@@ -52,7 +52,7 @@ watchcat_ping() {
                time_now="${time_now%%.*}"
                time_lastcheck="$time_now"
 
-               for host in "$pinghosts"
+               for host in $pinghosts
                do
                        if ping -c 1 "$host" &> /dev/null
                        then