فهرست منبع

use -rbundler/setup instead of bundle exec ruby since it is faster and has the same effect (2.3s vs 4s)

grosser 12 سال پیش
والد
کامیت
cca1af185d
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