Skip to content
Snippets Groups Projects
Commit c984be87 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

config: make config generator compatible with options containing whitespaces

parent 35bf3dbf
No related branches found
No related tags found
No related merge requests found
......@@ -554,7 +554,7 @@ repo: repo_packages repo_package_info repo_metadata
config $(CONFIG_FILE):
@echo "Generating configuration $(CONFIG_FILE)"
echo "#see $(CONFIG_FILE_DEFAULTS) for default values." > "$(CONFIG_FILE)"
echo -e -n "$(foreach option,$(CONFIGURABLE),$(option)=$($(option))\n)" | tr -d "[:blank:]" >> "$(CONFIG_FILE)"
echo -e -n "$(foreach option,$(CONFIGURABLE),$(option)=$(strip $($(option)))\n)" >> "$(CONFIG_FILE)"
config_clean:
$(RM) $(CONFIG_FILE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment