We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87ba01e commit 328a9d1Copy full SHA for 328a9d1
scripts/translator.py
@@ -102,6 +102,10 @@ def commit_and_push(translate_files, branch):
102
# Print stdout and stderr (if any)
103
if result.stdout:
104
print(f"STDOUT for {cmd}:\n{result.stdout}")
105
+ if "nothing to commit" in result.stdout.lower():
106
+ print("Nothing to commit, leaving")
107
+ exit(0)
108
+
109
if result.stderr:
110
print(f"STDERR for {cmd}:\n{result.stderr}")
111
0 commit comments