From f465358ba4ac5e32c858b0f7a30c5983fb2a318a Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 1 Jun 2012 23:32:45 -0400 Subject: Don't report success when builderrors > 0 Technically, we report success when we wrote an image to disk, but this might not be obvious to users, even with a blaring warning right before this line. If in the event builderrors is incremented at all, avoid reporting any sort of "success", since there might be cause for concern. Signed-off-by: Dave Reisner --- mkinitcpio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkinitcpio b/mkinitcpio index 7497b7c..e20dff5 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -430,7 +430,7 @@ if [[ $GENIMG ]]; then if [[ $errmsg ]]; then error "Image generation FAILED: %s" "$errmsg" status=1 - else + elif (( builderrors == 0 )); then msg "Image generation successful" fi -- cgit v1.2.3-24-g4f1b