Kaynağa Gözat

Merge pull request #20 from grosser/master

use -rbundler/setup instead of bundle exec ruby
Graham Ashton 12 yıl önce
ebeveyn
işleme
acb2ace436
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  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