diff options
author | Joas Schilling <coding@schilljs.com> | 2022-09-12 08:09:39 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-09-12 08:09:39 +0300 |
commit | e51b72ed4c034380a9a5651790c2fd5cd46aa664 (patch) | |
tree | d0bf934f963e9e0c6435d95092a3828aea116321 | |
parent | aacd2b97bddf54859685f82f648a1852b7bb64ff (diff) |
Only use the first <id> line
Apps could have more id entries in subsequent lines for navigation entries and more.
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rwxr-xr-x | translations-app/handleAppTranslations.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/translations-app/handleAppTranslations.sh b/translations-app/handleAppTranslations.sh index 602d246..1c1ce54 100755 --- a/translations-app/handleAppTranslations.sh +++ b/translations-app/handleAppTranslations.sh @@ -16,7 +16,7 @@ if [ ! -f '/app/.tx/config' ]; then exit 1 fi -APP_ID=$(grep -oE '<id>.*</id>' appinfo/info.xml | sed -E 's/<id>(.*)<\/id>/\1/') +APP_ID=$(grep -oE '<id>.*</id>' appinfo/info.xml | head --lines 1 | sed -E 's/<id>(.*)<\/id>/\1/') RESOURCE_ID=$(grep -oE '\[nextcloud\..*\]' .tx/config | sed -E 's/\[nextcloud.(.*)\]/\1/') if [ "$RESOURCE_ID" = "MYAPP" ]; then echo "Invalid transifex configuration file .tx/config (translating MYAPP instead of real value)" |