Skip to content

Commit 28fa105

Browse files
authored
add unix for condaArch linux or osx (#85)
1 parent bc8e4cc commit 28fa105

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/main/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ async function installMicromamba (inputs) {
284284

285285
function isSelected (item) {
286286
if (/sel\(.*\):.*/gi.test(item)) {
287-
const condaPlatform = getCondaArch().split('-')[0]
287+
let condaPlatform = getCondaArch().split('-')[0]
288+
if (["linux", "osx"].includes(condaPlatform))
289+
condaPlatform += '|unix';
288290
return new RegExp(`sel\\(${condaPlatform}\\):.*`, 'gi').test(item)
289291
}
290292
return true

0 commit comments

Comments
 (0)