Skip to content

Commit e8254f4

Browse files
committed
do not add our lib twice
1 parent 770b2b1 commit e8254f4

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)