mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
crowdin: do not error on nothing to commit
This commit is contained in:
@@ -25,10 +25,14 @@ function Commit-Module($project, $path) {
|
||||
throw "Last command failed."
|
||||
}
|
||||
|
||||
git commit -m "Translations update"
|
||||
git diff-index --quiet HEAD
|
||||
|
||||
if ($LastExitCode -ne 0) {
|
||||
throw "Last command failed."
|
||||
git commit -m "Translations update"
|
||||
|
||||
if ($LastExitCode -ne 0) {
|
||||
throw "Last command failed."
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
Pop-Location
|
||||
@@ -58,10 +62,14 @@ function Crowdin-Download {
|
||||
throw "Last command failed."
|
||||
}
|
||||
|
||||
git commit -m "Translations update"
|
||||
git diff-index --quiet HEAD
|
||||
|
||||
if ($LastExitCode -ne 0) {
|
||||
throw "Last command failed."
|
||||
git commit -m "Translations update"
|
||||
|
||||
if ($LastExitCode -ne 0) {
|
||||
throw "Last command failed."
|
||||
}
|
||||
}
|
||||
|
||||
git push origin "$branch" --recurse-submodules=on-demand
|
||||
|
||||
Reference in New Issue
Block a user