Fix error message when trying to install truffleruby on windows

This commit is contained in:
Benoit Daloze
2021-01-19 16:32:54 +01:00
parent c782da25bd
commit 1891d63a08
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export async function setupRuby(options = {}) {
const [engine, parsedVersion] = parseRubyEngineAndVersion(inputs['ruby-version'])
let installer
if (platform.startsWith('windows-') && engine === 'ruby') {
if (platform.startsWith('windows-') && engine !== 'jruby') {
installer = require('./windows')
} else {
installer = require('./ruby-builder')