Ignore exit code of env remove in case it doesn't exist
This commit is contained in:
@@ -135,7 +135,7 @@ jobs:
|
||||
|
||||
if ($rebuild) {
|
||||
Write-Host "Environment changed → rebuilding"
|
||||
micromamba env remove -n $envName -y 2>$null
|
||||
micromamba env remove -n $envName -y 2>$null || $true
|
||||
micromamba create -n $envName -f $envFile -y
|
||||
$newHash | Out-File $hashFile
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user