File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
docker-mods/qbittorrent/root/etc
s6-overlay/s6-rc.d/init-mod-themepark Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ sed_file(){
9898}
9999
100100clean_file() {
101- perl -i -pe 's/QBT_TR?\(//' "$1"
102- perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//' "$1"
101+ perl -i -pe 's/QBT_TR?\(//g ' "$1"
102+ perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//g ' "$1"
103103}
104104
105105if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
@@ -117,10 +117,9 @@ if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
117117fi
118118
119119# Clean all files
120- printf 'Cleaning files in /themepark for any translation text...\n\n
121- --------------------------------------------------------------------------
122- | !!! RESTART THE CONTAINER IF THIS IS THE FIRST TIME CLEANING FILES !!! |
123- --------------------------------------------------------------------------\n\n'
120+ echo '------------------------------------------------------------'
121+ echo '| Cleaning files in /themepark for any translation text... |'
122+ echo '------------------------------------------------------------'
124123find /themepark -type f \( ! -iname "*.svg" \) | while read fname
125124do
126125 clean_file $fname
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ sed_file(){
8383}
8484
8585clean_file() {
86- perl -i -pe 's/QBT_TR?\(//' "$1"
87- perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//' "$1"
86+ perl -i -pe 's/QBT_TR?\(//g ' "$1"
87+ perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//g ' "$1"
8888}
8989
9090if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
@@ -102,10 +102,9 @@ if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
102102fi
103103
104104# Clean all files
105- printf 'Cleaning files in /themepark for any translation text...\n\n
106- --------------------------------------------------------------------------
107- | !!! RESTART THE CONTAINER IF THIS IS THE FIRST TIME CLEANING FILES !!! |
108- --------------------------------------------------------------------------\n\n'
105+ echo '------------------------------------------------------------'
106+ echo '| Cleaning files in /themepark for any translation text... |'
107+ echo '------------------------------------------------------------'
109108find /themepark -type f \( ! -iname "*.svg" \) | while read fname
110109do
111110 clean_file $fname
You can’t perform that action at this time.
0 commit comments