diff --git a/version/1.3.1/UPDATE.sh b/version/1.3.1/UPDATE.sh index 9227fa0a..ef32c180 100644 --- a/version/1.3.1/UPDATE.sh +++ b/version/1.3.1/UPDATE.sh @@ -36,6 +36,7 @@ if [[ $modules_modified -eq 1 ]]; then updated_modules=$(IFS=','; echo "${enabled_array[*]}") # Use double quotes around the value when writing back sed -i "s/^enabled_modules=\".*\"/enabled_modules=\"${updated_modules}\"/" "$CONFIG_FILE" + sed -i "s/^enabled_modules=\(.*\)$/enabled_modules=\"\1\"/" "$CONFIG_FILE" echo "Updated enabled_modules in config file." fi