1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-03 22:17:08 +02:00

qbit update clean_file function.

This commit is contained in:
GilbN 2023-06-03 15:36:05 +02:00
parent 197ec4bb82
commit 90360aa20b
2 changed files with 4 additions and 4 deletions

View File

@ -98,8 +98,8 @@ sed_file(){
}
clean_file() {
perl -i -pe 's/QBT_TR?\(//' "$1"
perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//' "$1"
perl -i -pe 's/QBT_TR?\(//g' "$1"
perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//g' "$1"
}
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then

View File

@ -83,8 +83,8 @@ sed_file(){
}
clean_file() {
perl -i -pe 's/QBT_TR?\(//' "$1"
perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//' "$1"
perl -i -pe 's/QBT_TR?\(//g' "$1"
perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//g' "$1"
}
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then