aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-30 00:05:25 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-30 00:05:25 +0200
commitf4aa01cae8880814827b3e0130a7fd95f6077aba (patch)
treeaec6ccfd9b1b69c31381caf860743b2459a02876 /sboremove
parent258a54ba58e6f51d16bfcb1291076c642766343e (diff)
downloadsbotools-f4aa01cae8880814827b3e0130a7fd95f6077aba.tar.xz
sboremove: change check for exists $foo[0] to checking @foo
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove2
1 files changed, 1 insertions, 1 deletions
diff --git a/sboremove b/sboremove
index 716425e..a7ca086 100755
--- a/sboremove
+++ b/sboremove
@@ -64,7 +64,7 @@ for my $sbo (@ARGV) {
say "Unable to locate $sbo in the SlackBuilds.org tree."
}
}
-exit 1 unless exists $sbos[0];
+exit 1 unless @sbos;
# Create full queue.
my ($remove_queue, %warnings);