Skip to content

Commit

Permalink
Fix error using Array#empty?
Browse files Browse the repository at this point in the history
  • Loading branch information
cedlemo committed Aug 9, 2015
1 parent 6f7d716 commit 9c5d287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtk3/sample/misc/gtkglarea1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def getlibdir
# /usr/lib /usr/lib64 slackware
# /usr/lib/i386.. /usr/lib/x86_64..debian
libs = Dir.glob("/usr/lib*/libGL.so") # libs in /usr/lib or /usr/lib64 for most distribs
libs = Dir.glob("/usr/lib*/*/libGL.so") if libs.empty? == 0 # debian like
if libs.empty? == 0
libs = Dir.glob("/usr/lib*/*/libGL.so") if libs.empty? # debian like
if libs.empty?
puts "no libGL.so"
exit 1
end
Expand Down

0 comments on commit 9c5d287

Please sign in to comment.