Skip to content

Commit 77d85ca

Browse files
authored
Merge pull request #497 from GilbN/develop
1.13.9
2 parents 2b32a2a + 80e58df commit 77d85ca

File tree

2 files changed

+10
-12
lines changed
  • docker-mods/qbittorrent/root/etc

2 files changed

+10
-12
lines changed

docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ sed_file(){
9898
}
9999

100100
clean_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

105105
if ! 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
117117
fi
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 '------------------------------------------------------------'
124123
find /themepark -type f \( ! -iname "*.svg" \) | while read fname
125124
do
126125
clean_file $fname

docker-mods/qbittorrent/root/etc/s6-overlay/s6-rc.d/init-mod-themepark/run

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ sed_file(){
8383
}
8484

8585
clean_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

9090
if ! 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
102102
fi
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 '------------------------------------------------------------'
109108
find /themepark -type f \( ! -iname "*.svg" \) | while read fname
110109
do
111110
clean_file $fname

0 commit comments

Comments
 (0)