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

scoop update returns exit code 0 even when update fails #4883

Closed
fluffynuts opened this issue Apr 20, 2022 · 1 comment
Closed

scoop update returns exit code 0 even when update fails #4883

fluffynuts opened this issue Apr 20, 2022 · 1 comment
Labels

Comments

@fluffynuts
Copy link

fluffynuts commented Apr 20, 2022

Bug Report

As per the title, scoop update returns exit code 0 when the update fails. This means that a controller process (eg a little parallel-update script I hacked together because some larger updates were holding up smaller ones) can't easily tell if an update fails.

Current Behavior

scoop update always returns exit code 0, irrespective of whether or not the update completed.

Expected Behavior

scoop update should return a non-zero exit code if the update doesn't complete successfully

Additional context/output

image

Possible Solution

ideally, the exit code could mean something, eg
1: app is currently open (can't be updated)
2: download fails
3: hash check fails
4: installation fails for some reason (eg disk full)

but I'd settle for any non-zero on any error, tbh

System details

Windows version:
11

OS architecture:
64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
7.2.2

Scoop Configuration

{
  "lastUpdate": "2022-04-20T16:04:45.4031884+02:00",
  "SCOOP_REPO": "https://github.com/ScoopInstaller/Scoop",
  "SCOOP_BRANCH": "master"
}
@rashil2000
Copy link
Member

Hi!

Thanks for the report. This is being tracked here - #3936

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

No branches or pull requests

2 participants