Skip to content

Commit

Permalink
feat(#217): Translations: git add only if modified files are present
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Mar 6, 2021
1 parent 6305e84 commit 889839d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/import-translations-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ if [ "$CIRCLE_PULL_REQUEST" == "" ]; then

[[ -z $(git status --porcelain) ]] || \
git add . && \
git commit -m "Automatic translation import (build #$CIRCLE_BUILD_NUM)." \
-m "Commit $CIRCLE_SHA1" && \
git commit -m "Automatic translation import (build #$CIRCLE_BUILD_NUM)." -m "Commit $CIRCLE_SHA1" && \
git pull --rebase && \
#git push origin master 2>&1
git push origin master 2>&1

echo -e "... Done with importing translations from Crowdin\n"
fi

0 comments on commit 889839d

Please sign in to comment.