lib/dblink/psql_runner.rb in dblink-0.4.1 vs lib/dblink/psql_runner.rb in dblink-0.4.2
- old
+ new
@@ -38,10 +38,10 @@
if path != ''
path = 'psql'
elsif RUBY_PLATFORM =~ /darwin/
paths = Dir.glob('/Applications/Postgres.app/Contents/Versions/**/psql')
- path = paths.last if paths.size > 0
+ path = paths.last.strip if paths.size > 0
end
path == '' ? nil : path
end
end