diff options
author | Baptiste Jonglez <git@bitsofnetworks.org> | 2017-01-09 18:05:03 +0300 |
---|---|---|
committer | Baptiste Jonglez <git@bitsofnetworks.org> | 2017-01-09 18:05:06 +0300 |
commit | 669fe615c644920b88d42943fb1920695ab30e63 (patch) | |
tree | d9490b44040238deaaa71d36a49a26fa0fec1dab /babeld | |
parent | fd424268ba0945ab6647d1fbb1674b1c85c59f82 (diff) |
babeld: Properly quote variables
This was mostly introduced by 82d9002689 ("babeld: add support for dynamic
config files").
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
Diffstat (limited to 'babeld')
-rwxr-xr-x | babeld/files/babeld.init | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/babeld/files/babeld.init b/babeld/files/babeld.init index def90b2..dea207a 100755 --- a/babeld/files/babeld.init +++ b/babeld/files/babeld.init @@ -18,7 +18,7 @@ ignored_options="carrier_sense assume_wireless no_split_horizon random_router_id # Append a line to the configuration file cfg_append() { local value="$1" - echo "$value" >> $CONFIGFILE + echo "$value" >> "$CONFIGFILE" } cfg_append_option() { @@ -215,13 +215,13 @@ babel_config_cb() { start_service() { mkdir -p /var/lib mkdir -p /var/etc - mkdir -p $OTHERCONFIGDIR + mkdir -p "$OTHERCONFIGDIR" # Start by emptying the generated config file >"$CONFIGFILE" # Import dynamic config files - for f in $OTHERCONFIGDIR/*.conf; do - [ -f "$f" ] && cat $f >> $CONFIGFILE + for f in "$OTHERCONFIGDIR"/*.conf; do + [ -f "$f" ] && cat "$f" >> "$CONFIGFILE" done # First load the whole config file, without callbacks, so that we are # aware of all "ignore" options in the second pass. |