From: Matthias Kruk Date: Fri, 23 Apr 2021 21:35:15 +0000 (+0900) Subject: include/conf: Append config instead of overwriting it X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=602532b242b39d085368860d03d1b322aa7061ee;p=toolbox include/conf: Append config instead of overwriting it The conf_set() function overwrites the configuration file instead of appending to it, making it impossible to store multiple settings. This commit changes conf_set() to append to the configuration file. --- diff --git a/include/conf.sh b/include/conf.sh index 1921cec..1caa30b 100644 --- a/include/conf.sh +++ b/include/conf.sh @@ -62,7 +62,7 @@ conf_set() { fi fi - if ! echo "$name=$value" > "$__conf_file"; then + if ! echo "$name=$value" >> "$__conf_file"; then return 1 fi