1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-06 23:46:24 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"
@ -28,4 +28,4 @@ php_cfg_gen() {
ls -la "$dir" ls -la "$dir"
exit 1 exit 1
fi fi
} }