|
@ -154,6 +154,11 @@ nextcloud:config:simple:add() { |
|
|
err "Value for '$key' is empty. Skipping." |
|
|
err "Value for '$key' is empty. Skipping." |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ "$value" == "empty" ]; then |
|
|
|
|
|
value="" |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
## check for \ and ' in value and key |
|
|
## check for \ and ' in value and key |
|
|
if [[ "$value" =~ [\\\'] ]]; then |
|
|
if [[ "$value" =~ [\\\'] ]]; then |
|
|
err "Unsupported value for '$key' contains a backslash or a single quote." |
|
|
err "Unsupported value for '$key' contains a backslash or a single quote." |
|
|