summaryrefslogtreecommitdiffstats
path: root/refresh-translations
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2017-09-13 07:19:40 +0000
committerintrigeri <intrigeri@boum.org>2017-09-13 07:19:40 +0000
commit5efee3d7eab125598b53bd8671796f9acb669482 (patch)
tree4de5aa1f43d77c463d5b89e0468cdd2017ceb629 /refresh-translations
parent62002419c059a8f6c72605b89cdec4782b9ce438 (diff)
normalize_pot(): convert to extended regexp and avoid extreme quoting caused by shell double quotes (refs: #12641).
Diffstat (limited to 'refresh-translations')
-rwxr-xr-xrefresh-translations2
1 files changed, 1 insertions, 1 deletions
diff --git a/refresh-translations b/refresh-translations
index 04cec27..9b9e205 100755
--- a/refresh-translations
+++ b/refresh-translations
@@ -29,7 +29,7 @@ LOCALE_BASEDIR=config/chroot_local-includes/usr/share/locale
### Functions
normalize_pot () {
- sed -i "s@^\"Content-Type: text/plain\; charset=CHARSET\\\n\"@\"Content-Type: text/plain\; charset=UTF-8\\\n\"@" "${@}"
+ sed --regexp-extended -i 's@^"Content-Type: text/plain; charset=CHARSET\\n"@"Content-Type: text/plain; charset=UTF-8\\n"@' "${@}"
}
prog_potfile () {