Write backends comma-separated to config

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
Marcel Müller 2023-06-11 17:01:22 +02:00
parent 5a84dd7d65
commit a083cf3001

View file

@ -216,7 +216,8 @@ if [ ! -f "$CONFIG" ]; then
fi
if [ ! -z "$BACKENDS" ]; then
sed -i "s|#backends = .*|backends = $BACKENDS|" "$CONFIG"
BACKENDS_CONFIG=$(echo $BACKENDS | sed 's/ /,/g')
sed -i "s|#backends = .*|backends = $BACKENDS_CONFIG|" "$CONFIG"
echo >> "$CONFIG"
for backend in $BACKENDS; do