Skip to content

Commit 8832df5

Browse files
committed
Improve support of rpmbuild on EL10
1 parent 360b7d3 commit 8832df5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SOURCES/libexec/build-remote.shx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ remoteBuildProcess() {
320320

321321
show ""
322322

323-
local has_errors dl_start grc_time packages package_name package_file
323+
local exit_code has_errors dl_start grc_time packages package_name package_file
324324

325-
has_errors=$(tail -100 "$tmp_output" | grep -E '^\+' | tail -1 | grep -v "+ exit 0")
325+
exit_code=$(tail -100 "$tmp_output" | grep -E '^\+' | tail -1 | grep "+ exit 0")
326326

327-
if [[ -z "$has_errors" ]] ; then
327+
if [[ -n "$exit_code" ]] ; then
328328
grc_time=$(getGraceDuration "$build_start")
329329

330330
show "Build complete! The build took $grc_time." $GREEN

0 commit comments

Comments
 (0)