소스 검색

Merge pull request #20 from grosser/master

use -rbundler/setup instead of bundle exec ruby
Graham Ashton 12 년 전
부모
커밋
acb2ace436
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      bundler-exec.sh

+ 5 - 1
bundler-exec.sh

@@ -24,7 +24,11 @@ within-bundled-project()
 run-with-bundler()
 {
     if bundler-installed && within-bundled-project; then
-        bundle exec "$@"
+        if [ $command == "ruby" ]; then
+            ruby -rbundler/setup "$@"
+        else
+            bundle exec $command "$@"
+        fi
     else
         "$@"
     fi