base-files/functions.sh: don't use $var in $(())
authorRosen Penev <rosenp@gmail.com>
Fri, 17 Jan 2020 04:43:53 +0000 (20:43 -0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 17 Jan 2020 11:17:35 +0000 (12:17 +0100)
commitcba5fa0352869c117858bd56bebf3c1290865d99
tree357bf2f9913924f091b086364a9855a572f0377d
parent1322190fd355e6d9c0f37a668a77a14bbfb2c375
base-files/functions.sh: don't use $var in $(())

It's not needed. It can also lead to subtle bugs.

https://github.com/koalaman/shellcheck/wiki/Sc2004

Signed-off-by: Rosen Penev <rosenp@gmail.com>
package/base-files/files/lib/functions.sh