-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from nextcloud/bugfix/noid/posix-shell
Make checks in translation script work in posix sh
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
||
|