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 199535f..a0259ad 100755
--- a/sboupgrade
+++ b/sboupgrade
@@ -55,8 +55,7 @@ my $compat32 = exists $options{p} ? 'TRUE' : 'FALSE';
if (exists $options{j}) {
unless ($options{j} =~ /^\d+$/ || $options{j} == 'FALSE') {
- print "You have provided an invalid parameter for -j\n";
- exit 1;
+ die "You have provided an invalid parameter for -j\n";
}
}
my $jobs = exists $options{j} ? $options{j} : $config{JOBS};
@@ -72,8 +71,7 @@ my %locations;
for my $sbo_name (@ARGV) {
$locations{$sbo_name} = get_sbo_location ($sbo_name);
unless (defined $locations{$sbo_name}) {
- print "Unable to locate $sbo_name in the SlackBuilds.org tree.\n";
- exit 1;
+ die "Unable to locate $sbo_name in the SlackBuilds.org tree.\n";
}
}