gsu: Fix handling of config options with newlines.
[gsu.git] / funcs / gsu
index 1d23973a46cffe85159972a6bbaae62bf1373dd3..3f7d379ffcf3867b2c07a660626db17ca2b5cb9a 100644 (file)
--- a/funcs/gsu
+++ b/funcs/gsu
@@ -378,7 +378,7 @@ _gsu_check_options()
                        return
                esac
 
-               eval ${gsu_config_var_prefix}_$name='"'${val:=$default_value}'"'
+               eval ${gsu_config_var_prefix}_$name='"'\${val:=$default_value}'"'
                # Check option type. ATM, only num and string are supported
                # Other types may be added without breaking compatibility
                case "$option_type" in