diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-11-04 10:25:53 -0600 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-11-04 10:25:53 -0600 |
commit | 0513f8c31e01f9696c11babcaf44c55a0fe9199c (patch) | |
tree | 3ec409ede85fc070b68b71afdd0f801f58dbcedd /SBO-Lib | |
parent | 32a918f88842deab5fedaa7671d5c343faacd26c (diff) | |
download | sbotools2-0513f8c31e01f9696c11babcaf44c55a0fe9199c.tar.xz |
get_sbo_location should return undef if it finds nothing
Diffstat (limited to 'SBO-Lib')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 2 |
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. |