On Fri, Oct 14, 2016 at 07:54:53PM +0200, Jan-Tarek Butt wrote:
> -     ntpservers=$(ubus call network.interface dump | jsonfilter -e 
> "@.interface[$filter]['data']['ntpserver']")
> +     ntpservers="$(ubus call network.interface dump | jsonfilter -e 
> "@.interface[$filter]['data']['ntpserver']")"
>  
this doesn't add anything but noise, as the RHS of an assignment is not
split or globbed.

> -             [ "$duplicate" = 0 ] && server="$server $ntpserver"
> +             [ "$duplicate" -eq "0" ] && server="$server $ntpserver"
>  
quoting literal numbers is just silly imo. _especially_ as you're
swithing to an operator that explicitly requires a number.


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to