1
0
Эх сурвалжийг харах

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

grosser 12 жил өмнө
parent
commit
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()
 run-with-bundler()
 {
 {
     if bundler-installed && within-bundled-project; then
     if bundler-installed && within-bundled-project; then
-        bundle exec "$@"
+        if [ $command == "ruby" ]; then
+            ruby -rbundler/setup "$@"
+        else
+            bundle exec $command "$@"
+        fi
     else
     else
         "$@"
         "$@"
     fi
     fi