mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Install Bundler 1 on Windows for Ruby < 2.6 without Bundler
This commit is contained in:
+1
-1
@@ -6495,7 +6495,7 @@ async function downloadExtractAndSetPATH(ruby) {
|
||||
core.exportVariable('PATH', newPath)
|
||||
|
||||
if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) {
|
||||
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler --no-document`)
|
||||
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler -v "~> 1" --no-document`)
|
||||
}
|
||||
|
||||
return rubyPrefix
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ export async function downloadExtractAndSetPATH(ruby) {
|
||||
core.exportVariable('PATH', newPath)
|
||||
|
||||
if (!fs.existsSync(`${rubyPrefix}\\bin\\bundle.cmd`)) {
|
||||
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler --no-document`)
|
||||
await exec.exec(`${rubyPrefix}\\bin\\gem install bundler -v "~> 1" --no-document`)
|
||||
}
|
||||
|
||||
return rubyPrefix
|
||||
|
||||
Reference in New Issue
Block a user