aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi
diff options
context:
space:
mode:
Diffstat (limited to 'grpmi')
-rwxr-xr-xgrpmi/grpmi.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/grpmi/grpmi.pl b/grpmi/grpmi.pl
index f7f8bd92..3fc14ef6 100755
--- a/grpmi/grpmi.pl
+++ b/grpmi/grpmi.pl
@@ -164,10 +164,12 @@ Do you want to force the install anyway?",
}
my $res = chomp_(grpmi_rpm::install_packages(\&install_packages_callback, @ARGV));
- $res and interactive_msg(_("Problems occurred during installation"), _("There was an error during packages installation:\n\n%s", $res));
+ if ($res) {
+ interactive_msg(_("Problems occurred during installation"), _("There was an error during packages installation:\n\n%s", $res));
+ goto cleanup;
+ }
}
-
# -=-=-=---=-=-=---=-=-=-- cleanup -=-=-=---=-=-=--
$exitstatus = 0;
interactive_msg(_("Everything installed successfully"), _("All requested packages were installed successfully."));