aboutsummaryrefslogtreecommitdiff
path: root/sboupgrade
diff options
context:
space:
mode:
Diffstat (limited to 'sboupgrade')
-rwxr-xr-xsboupgrade6
1 files changed, 2 insertions, 4 deletions
diff --git a/sboupgrade b/sboupgrade
index 1f37202..315b44a 100755
--- a/sboupgrade
+++ b/sboupgrade
@@ -159,8 +159,7 @@ sub grok_user_group {
for my $cmd (@cmds) {
my @split = split (' ', $cmd);
my $command = shift (@split);
- system ($command, @split);
- warn "$cmd appears to have resulted in an error\n" if $? != 0;
+ warn "$cmd exited non-zero" if (system ($command, @split) != 0);
}
}
return 1;
@@ -320,8 +319,7 @@ if ($install_new eq 'TRUE') {
if (<STDIN> =~ /^[Yy\n]/) {
my $cmd = "/usr/sbin/sboupgrade";
my @args = ('-oN', $sbo);
- system ($cmd, @args);
- exit 1 if $? != 0;
+ exit 1 if (system ($cmd, @args) != 0);
} else {
print "Please install $sbo\n" and exit 0;
}