diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-03-03 14:53:18 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-03-03 14:53:18 +0100 |
commit | 30b1aa84d602a648139ae78f00b94dc9ded666bf (patch) | |
tree | 3bdaa78c53cbc18a738af15eb0cec00c9561d6d3 /sboremove | |
parent | 5ecef1547e12d76c5a7157f65a90937511600b1b (diff) | |
download | sbotools2-30b1aa84d602a648139ae78f00b94dc9ded666bf.tar.xz |
sbo*: Add returns to subs missing them and check @_ better
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -20,7 +20,7 @@ use File::Basename; my $self = basename ($0); sub show_usage { - print <<EOF + print <<"EOF"; Usage: $self [options] sbo Options (defaults shown first where applicable): @@ -34,6 +34,7 @@ Options (defaults shown first where applicable): Note: optional dependencies need to be removed separately. EOF + return 1; } my ($help, $vers, $non_int, $alwaysask, @excluded); @@ -92,6 +93,7 @@ sub get_reverse_reqs { } } } + return 1; } get_reverse_reqs($inst_names); @@ -119,6 +121,7 @@ sub confirm_remove { $found++ if $sbo eq $conf; } push @confirmed, $sbo unless $found; + return 1; } # Check if packages in queue are actually installed on system |