]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1653] keactrl: more unbound variable checks
authorAndrei Pavel <andrei@isc.org>
Tue, 22 Jun 2021 07:16:32 +0000 (10:16 +0300)
committerAndrei Pavel <andrei@isc.org>
Tue, 22 Jun 2021 08:48:27 +0000 (11:48 +0300)
src/bin/keactrl/keactrl.in

index 0f86a6eae65354043a194cf69948d77b8ef87d64..7716f21c12c49567af4a5977f40c1f380ffa83b6 100644 (file)
@@ -421,28 +421,28 @@ fi
 
 # Get location of the DHCPv4 server binary.
 # shellcheck disable=SC2154
-if [ -z "${dhcp4_srv}" ]; then
+if [ -z "${dhcp4_srv+x}" ]; then
     log_error "dhcp4_srv parameter not specified"
     exit 1
 fi
 
 # Get location of the DHCPv6 server binary.
 # shellcheck disable=SC2154
-if [ -z "${dhcp6_srv}" ]; then
+if [ -z "${dhcp6_srv+x}" ]; then
     log_error "dhcp6_srv parameter not specified"
     exit 1
 fi
 
 # Get location of the DHCP DDNS server binary.
 # shellcheck disable=SC2154
-if [ -z "${dhcp_ddns}" ]; then
+if [ -z "${dhcp_ddns+x}" ]; then
     log_error "dhcp_ddns parameter not specified"
     exit 1
 fi
 
 # Get location of the Control Agent binary.
 # shellcheck disable=SC2154
-if [ -z "${ctrl_agent_srv}" ]; then
+if [ -z "${ctrl_agent_srv+x}" ]; then
     log_error "ctrl_agent_srv parameter not specified"
     exit 1
 fi