aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-18 02:15:25 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-18 02:15:25 +0200
commit028ea510e8b91926832a09346573166f049c06a6 (patch)
tree93e5322336c11fa44a1203c3a11504154af472ea
parentd31fd91c41c4985f8bed0742c16f86eb1719ef54 (diff)
downloadsbotools2-028ea510e8b91926832a09346573166f049c06a6.tar.xz
sboremove: %inst_names has already been checked before, and nothing odd would happen anyway
-rwxr-xr-xsboremove8
1 files changed, 3 insertions, 5 deletions
diff --git a/sboremove b/sboremove
index 2eac054..be1215f 100755
--- a/sboremove
+++ b/sboremove
@@ -112,12 +112,10 @@ sub confirm_remove {
# Check if packages in queue are actually installed on system
my @temp;
-if (%inst_names) {
- for my $sbo (@$remove_queue) {
- push @temp, $sbo if $inst_names{$sbo};
- }
- $remove_queue = \@temp;
+for my $sbo (@$remove_queue) {
+ push @temp, $sbo if $inst_names{$sbo};
}
+$remove_queue = \@temp;
# Confirm all and skip prompts if noninteractive
if ($non_int) {