From e1f05c7e92af6e2880b95aa1889cd73303ae46ba Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 17 Aug 2020 15:25:24 +0200 Subject: [slx-network] fix bad variable usage --- modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh b/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh index 3dfd7edd..fec160a8 100644 --- a/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh +++ b/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh @@ -45,7 +45,9 @@ parse_kcl() { # if not boot server was given, use slxsrv if [ -z "$bootsrv" ]; then kclsrv="$(getarg slxsrv=)" - [ -n "$kclsrc" ] && bootsrv="$kclsrv" + if [ -n "$kclsrv" ]; then + declare -g bootsrv="$kclsrv" + fi fi # calculate network mask -- cgit v1.2.3-55-g7522