aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-11-04 10:25:53 -0600
committerJacob Pipkin <j@dawnrazor.net>2012-11-04 10:25:53 -0600
commit0513f8c31e01f9696c11babcaf44c55a0fe9199c (patch)
tree3ec409ede85fc070b68b71afdd0f801f58dbcedd /SBO-Lib/lib/SBO/Lib.pm
parent32a918f88842deab5fedaa7671d5c343faacd26c (diff)
downloadsbotools2-0513f8c31e01f9696c11babcaf44c55a0fe9199c.tar.xz
get_sbo_location should return undef if it finds nothing
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index b829a3c..b34ba8f 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -243,7 +243,7 @@ sub get_sbo_location {
seek $fh, 0, 0;
}
close $fh;
- return %locations;
+ return %locations > 0 ? %locations : undef;
}
# pull the sbo name from a $location: $config{SBO_HOME}/system/wine, etc.