aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2013-01-16 02:19:13 -0600
committerJ Pipkin <j@dawnrazor.net>2013-01-16 02:19:13 -0600
commitb0b91fb934e18607d9be297f3b3c62afe6483f6b (patch)
tree84b3aecfba288cd7a90d1f5be3d80b0e7b0710c2
parentfe877256d11b044b70bb00fa6a2a24bd3e9f2f8c (diff)
downloadsbotools2-b0b91fb934e18607d9be297f3b3c62afe6483f6b.tar.xz
return from get_update_list() if there are no updates
-rwxr-xr-xsbocheck1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbocheck b/sbocheck
index 2279717..53c3861 100755
--- a/sbocheck
+++ b/sbocheck
@@ -44,6 +44,7 @@ update_tree;
sub get_update_list() {
print "Checking for updated SlackBuilds...\n";
my $updates = get_available_updates;
+ return unless exists $$updates[0];
# consistent formatting - determine longest version string, which will tell
# us the max minimum length of the left side of the output for stuff that
# fits in 80 chars; stuff that doesn't will overflow.