From 602532b242b39d085368860d03d1b322aa7061ee Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 24 Apr 2021 06:35:15 +0900 Subject: [PATCH] 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. --- include/conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3