summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-06-02 05:32:45 +0200
committerDave Reisner <dreisner@archlinux.org>2012-06-02 05:50:55 +0200
commitf465358ba4ac5e32c858b0f7a30c5983fb2a318a (patch)
tree1f3058a0e3570ed75418548eb06ca92d28ddf29e
parentc8f6effd1884b24de27c24d92883b0e270bcc3ba (diff)
downloadmkinitcpio-0.9.1.tar.gz
mkinitcpio-0.9.1.tar.xz
Don't report success when builderrors > 00.9.1
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 <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
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