From 28fa1058b29e6ecf42f276aab152f929dafefb7d Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Thu, 28 Jul 2022 09:25:18 +0200 Subject: [PATCH] add unix for condaArch linux or osx (#85) --- dist/main/index.js | 4 +++- index.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/main/index.js b/dist/main/index.js index 77022b04..9f2a1c6a 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -63216,7 +63216,9 @@ async function installMicromamba (inputs) { function isSelected (item) { if (/sel\(.*\):.*/gi.test(item)) { - const condaPlatform = getCondaArch().split('-')[0] + let condaPlatform = getCondaArch().split('-')[0] + if (["linux", "osx"].includes(condaPlatform)) + condaPlatform += '|unix'; return new RegExp(`sel\\(${condaPlatform}\\):.*`, 'gi').test(item) } return true diff --git a/index.js b/index.js index e5cb20cc..ecf11d81 100644 --- a/index.js +++ b/index.js @@ -284,7 +284,9 @@ async function installMicromamba (inputs) { function isSelected (item) { if (/sel\(.*\):.*/gi.test(item)) { - const condaPlatform = getCondaArch().split('-')[0] + let condaPlatform = getCondaArch().split('-')[0] + if (["linux", "osx"].includes(condaPlatform)) + condaPlatform += '|unix'; return new RegExp(`sel\\(${condaPlatform}\\):.*`, 'gi').test(item) } return true