summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-05 10:47:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-05 11:51:44 +0200
commit786802539587f2fe08ef57443e58af50146db33b (patch)
treee5b0f8ded68d426ba8a83b6c4208d4619cdce860
parent2e12d210cac8d031c21cdda9c37c1551f967ddc4 (diff)
Propagate clang-format failure from reformat-formatted-files
Specifically, this allows to manually terminate a (long-running) reformat-formatted-files through Ctrl-C. Change-Id: Ic44099b29e72619a6697d349a611a12b8536a3bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100154 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
-rwxr-xr-xsolenv/clang-format/reformat-formatted-files2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/clang-format/reformat-formatted-files b/solenv/clang-format/reformat-formatted-files
index 0302d3f9b244..a3a670f83a77 100755
--- a/solenv/clang-format/reformat-formatted-files
+++ b/solenv/clang-format/reformat-formatted-files
@@ -42,7 +42,7 @@ foreach my $filename (@filenames)
print($filename . "\n");
if (!$dry_run)
{
- system($command);
+ system($command) == 0 or die "failed to execute \"$command\": $?";
}
}