From 1891d63a08cebb96029d2e96b7bb432f3d5f5c4f Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 19 Jan 2021 16:32:54 +0100 Subject: [PATCH] Fix error message when trying to install truffleruby on windows --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a1181b6..b5b0ae6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -52088,7 +52088,7 @@ 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 = __webpack_require__(216) } else { installer = __webpack_require__(974) diff --git a/index.js b/index.js index 997d085..e04c5c9 100644 --- a/index.js +++ b/index.js @@ -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')