Skip to content

Commit

Permalink
Merge pull request #275 from nextcloud/bugfix/noid/posix-shell
Browse files Browse the repository at this point in the history
Make checks in translation script work in posix sh
  • Loading branch information
MorrisJobke authored May 18, 2021
2 parents ae4137b + e7b1a6e commit 2da3f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions translations/handleAppTranslations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ git clone [email protected]:$1/$2 /app
# TODO use build/l10nParseAppInfo.php to fetch app names for l10n

versions='stable19 stable20 stable20.1 stable21 stable21.1 master main'
if [[ -f '/app/.tx/backport' ]]; then
if [ -f '/app/.tx/backport' ]; then
versions="$(cat /app/.tx/backport) master"
fi

Expand All @@ -32,15 +32,15 @@ do
git checkout $version

# ignore build folder logreader
if [ "$2" == "logreader" ] ; then
if [ "$2" = "logreader" ] ; then
rm -rf build
fi

# build POT files
/translationtool.phar create-pot-files

# ignore build folder logreader
if [ "$2" == "logreader" ] ; then
if [ "$2" = "logreader" ] ; then
git checkout -- build
fi

Expand Down

0 comments on commit 2da3f24

Please sign in to comment.