unet-cli: fix reference to missing variable
authorFelix Fietkau <nbd@nbd.name>
Thu, 25 Aug 2022 10:38:32 +0000 (12:38 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 25 Aug 2022 10:41:29 +0000 (12:41 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/unet-cli

index c10b54254637df8b1fc6b4cbcede5a6d2e26d4d4..2353213f8e6b2bbf8dd1b7c3d3eee573e938b120 100755 (executable)
@@ -274,7 +274,7 @@ function sync_ssh_host(host) {
        fh2.seek();
        while (line = fh2.read("line")) {
                let vals = match(line, /^(.[[:alnum:]_-]*)=(.*)\n$/);
-               assert(vals, `Invalid argument: ${arg}`);
+               assert(vals, `Invalid argument: ${line}`);
                data[vals[1]] = vals[2]
        }
        fh2.close();