@cryptotaxi247 / netdata-1 / commits / 8bbf4bcd7

handle non hex debug flags value

Costa Tsaousis (ktsaou) committed Apr 27, 2014 at 16:09 UTC 8bbf4bcd7b0c3b0fa5d76c3fdab7addd0161d015
1 file changed +1 -1
netdata.start
+1 -1
@@ -39,7 +39,7 @@ then
39 else
40 # find if debug is enabled in the config
41 df=`grep -C 3 "\[debug\]" netdata.conf | grep "flags" | tail -n 1 | cut -d '=' -f 2 | sed s"/ //g"`
42 - if [ -z "$df" -o "$df" = "0x00000000" ]
42 + if [ -z "$df" -o "$df" = "0x00000000" -o $((df + 1 - 1)) -eq 0 ]
43 then
44 NETDATA_CONFIG_DEBUG=0
45 else