ScoopInstaller / Install

📥 Next-generation Scoop (un)installer

Home Page:https://get.scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Abort when failing installation on CI

bersbersbers opened this issue · comments

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
}