]> git.corax.cc Git - toolbox/commitdiff
include/conf: Append config instead of overwriting it
authorMatthias Kruk <m@m10k.eu>
Fri, 23 Apr 2021 21:35:15 +0000 (06:35 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 23 Apr 2021 21:35:15 +0000 (06:35 +0900)
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

index 1921cec74893c2267cce7afd938b00590a4b2983..1caa30b13fedc1167a6519430e8132ffd3559035 100644 (file)
@@ -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