From 889839da53cb58ce535bd65c7a05c307d062b84f Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Sat, 6 Mar 2021 00:37:45 +0100 Subject: [PATCH] feat(#217): Translations: git add only if modified files are present --- tools/import-translations-github.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/import-translations-github.sh b/tools/import-translations-github.sh index 0f78dc23..be636c79 100644 --- a/tools/import-translations-github.sh +++ b/tools/import-translations-github.sh @@ -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