Skip to content

Commit

Permalink
add unix for condaArch linux or osx (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Jul 28, 2022
1 parent bc8e4cc commit 28fa105
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -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
Expand Down

0 comments on commit 28fa105

Please sign in to comment.