Skip to content

Commit 8b7a761

Browse files
committed
Improve grep match for hst_scan_i18n.sh
1 parent fc68baf commit 8b7a761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/locale/hst_scan_i18n.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ find ../.. \( -name '*.php' -o -name '*.html' -o -name '*.sh' \) | xgettext --ou
1515
OLDIFS=$IFS
1616
IFS=$'\n'
1717
for string in $(awk -F'SYSTEM=' '/data=".+ SYSTEM=[^"]/ {print $2}' $HESTIA/bin/v-list-sys-services | cut -d\' -f2); do
18-
if [ -z "$(grep "$string" hestiacp.pot)" ]; then
18+
if [ -z "$(grep "\"$string\"" hestiacp.pot)" ]; then
1919
echo -e "\n#: ../../bin/v-list-sys-services:"$(grep -n "$string" $HESTIA/bin/v-list-sys-services | cut -d: -f1)"\nmsgid \"$string\"\nmsgstr \"\"" >> hestiacp.pot
2020
fi
2121
done

0 commit comments

Comments
 (0)