mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-08-26 16:17:05 +00:00
don't show update succeeded when git pull fails
This commit is contained in:
@@ -71,6 +71,10 @@ function update_scoop() {
|
||||
else {
|
||||
pushd $currentdir
|
||||
git_pull -q
|
||||
$res = $lastexitcode
|
||||
if($res -ne 0) {
|
||||
abort 'update failed'
|
||||
}
|
||||
popd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user