Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort when failing installation on CI #71

Open
bersbersbers opened this issue Nov 8, 2023 · 0 comments
Open

Abort when failing installation on CI #71

bersbersbers opened this issue Nov 8, 2023 · 0 comments

Comments

@bersbersbers
Copy link

bersbersbers commented Nov 8, 2023

Description

I run iex "& {$(irm get.scoop.sh)} -RunAsAdmin" in my GitLab CI.

The job continues even if scoop installation fails.

Possible Solution

Add an option to exit here, regardless of $IS_EXECUTED_FROM_IEX:

Install/install.ps1

Lines 100 to 105 in 656e17b

# Don't abort if invoked with iex that would close the PS session
if ($IS_EXECUTED_FROM_IEX) {
break
} else {
exit $errorCode
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant