Skip to content

Commit

Permalink
Only add lib to load path if the directory exists and its not already…
Browse files Browse the repository at this point in the history
… in the path
  • Loading branch information
josh authored and ddollar committed Apr 26, 2010
1 parent bdadeab commit 2cc202d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/heroku
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)

require 'heroku'
require 'heroku/command'
Expand Down

0 comments on commit 2cc202d

Please sign in to comment.