diff options
author | Jacob Pipkin <d4wnr4z0r@yahoo.com> | 2012-05-08 02:33:12 -0500 |
---|---|---|
committer | Jacob Pipkin <d4wnr4z0r@yahoo.com> | 2012-05-08 02:33:12 -0500 |
commit | 3ed002ece06cc7ec12cedb23b0c93d6d3ec0df07 (patch) | |
tree | a1a32d33e9534e295a51a0b4a0692cb21ace33ab /SBO-Lib/lib/SBO | |
parent | aec4fa7100b77112f2e74def10e7ccb55da097b0 (diff) | |
download | sbotools2-3ed002ece06cc7ec12cedb23b0c93d6d3ec0df07.tar.xz |
more of the same...
Diffstat (limited to 'SBO-Lib/lib/SBO')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index c775df1..2c82acf 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -314,10 +314,11 @@ sub get_sbo_location { sub split_line { script_error('split_line requires three arguments') unless exists $_[2]; my ($line,$pattern,$index) = @_; + my @split; if ($pattern eq ' ') { - my @split = split("$pattern",$line); + @split = split("$pattern",$line); } else { - my @split = split(/$pattern/,$line); + @split = split(/$pattern/,$line); } return clean_line($split[$index]); } @@ -327,11 +328,6 @@ sub split_equal_one { return split_line($_[0],'=',1); } -sub check_multilib { - return 1 if -f '/etc/profile.d/32dev.sh'; - return; -} - sub find_download_info { script_error('find_download_info requires four arguments.') unless exists $_[3]; |