From 57cc35f55a6d55b8a97ef08df2b32bd50cb67c99 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 25 Aug 2022 12:38:32 +0200 Subject: [PATCH] unet-cli: fix reference to missing variable Signed-off-by: Felix Fietkau --- scripts/unet-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2