base-files: change logging for upgrade on fwtool
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 3 Feb 2021 09:24:02 +0000 (10:24 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 16 May 2021 23:00:14 +0000 (01:00 +0200)
Remove vn call in favour of v call. This commit serves as preparation
for removing the v function call.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
[alter slightly to prevent double space after colon]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/base-files/files/lib/upgrade/fwtool.sh

index 3826bf5c303ee07dfb383bf5f403cf3e869cbb92..a45f3bbc731fdda2af38431b68a978e69b1b8107 100644 (file)
@@ -81,12 +81,12 @@ fwtool_check_image() {
        done
 
        v "Device $device not supported by this image"
-       vn "Supported devices:"
+       local devices="Supported devices:"
        for k in $dev_keys; do
                json_get_var dev "$k"
-               _vn " $dev"
+               devices="$devices $dev"
        done
-       _v
+       v "$devices"
 
        return 1
 }