From: Felix Fietkau Date: Thu, 25 Aug 2022 10:38:32 +0000 (+0200) Subject: unet-cli: fix reference to missing variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=57cc35f55a6d55b8a97ef08df2b32bd50cb67c99;p=project%2Funetd.git unet-cli: fix reference to missing variable Signed-off-by: Felix Fietkau --- diff --git a/scripts/unet-cli b/scripts/unet-cli index c10b542..2353213 100755 --- a/scripts/unet-cli +++ b/scripts/unet-cli @@ -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();