1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-11 16:32:59 +00:00

fix typo in regex

This commit is contained in:
engelant
2020-09-23 23:00:55 +02:00
committed by GitHub
parent 5f07629a6d
commit 9ea07a1404
+1 -1
View File
@@ -15,7 +15,7 @@ php_cfg_gen() {
case $cfg_value in case $cfg_value in
# TODO stop after the first match (currently matching incl. closing quote) # TODO stop after the first match (currently matching incl. closing quote)
true|TRUE|false|FALSE) true|TRUE|false|FALSE)
sed -ri "s#(\s*define).+(${cfg_setting}\x22|${cfg_setting}\x27)\.+#\tdefine(\x22${cfg_setting}\x22, ${cfg_value}\);#g" "$cfg_file" sed -ri "s#(\s*define).+(${cfg_setting}\x22|${cfg_setting}\x27).+#\tdefine(\x22${cfg_setting}\x22, ${cfg_value}\);#g" "$cfg_file"
;; ;;
*) *)
sed -ri "s#(\s*define).+(${cfg_setting}\x22|${cfg_setting}\x27).+#\tdefine(\x22${cfg_setting}\x22, \x22${cfg_value}\x22\);#g" "$cfg_file" sed -ri "s#(\s*define).+(${cfg_setting}\x22|${cfg_setting}\x27).+#\tdefine(\x22${cfg_setting}\x22, \x22${cfg_value}\x22\);#g" "$cfg_file"