]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3422] A couple of minor fixes in keactrl for bash.
authorMarcin Siodelski <marcin@isc.org>
Wed, 25 Jun 2014 09:53:41 +0000 (11:53 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 25 Jun 2014 09:53:41 +0000 (11:53 +0200)
src/bin/keactrl/keactrl.in

index 6b153c63c0ec61d828bf1d253e4622539a7d7b08..5362cac1eac9a83e3d26fbeff0ad20324682f1e1 100644 (file)
@@ -139,14 +139,14 @@ as another instance is already running."
 #   is dhcp4
 run_conditional() {
     local server=${1}         # Server name: dhcp4, dhcp6, dhcp_ddns
-    local command=${2}        # Command to execute
+    local command="${2}"      # Command to execute
     local check_file_cfg=${3} # Check if server enabled in the configuration file
 
     # If keyword "all" is not on the list of servers we will have to check
     # if our specific server is on the list. If, not return.
-    is_in_list "all" ${servers}
+    is_in_list "all" "${servers}"
     if [ ${_inlist} -eq 0 ]; then
-        is_in_list ${server} ${servers}
+        is_in_list ${server} "${servers}"
         if [ ${_inlist} -eq 0 ]; then
             return
         fi