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:
parent
197ec4bb82
commit
90360aa20b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user