Skip to content

Commit 8688d9c

Browse files
committed
Merge pull request #425 from grosser/grosser/path
do not add our lib twice
2 parents 770b2b1 + e8254f4 commit 8688d9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/spring

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if defined?(Gem)
4343
end
4444
end
4545

46-
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
46+
lib = File.expand_path("../../lib", __FILE__)
47+
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib) # enable local development
4748
require 'spring/client'
4849
Spring::Client.run(ARGV)

0 commit comments

Comments
 (0)