From 597198eb8a4ea67dae4d9db782f75922f6baeb41 Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Sun, 13 Nov 2016 16:25:38 +1100 Subject: [PATCH] don't show update succeeded when git pull fails --- libexec/scoop-update.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libexec/scoop-update.ps1 b/libexec/scoop-update.ps1 index 8a2a49bd..acfa063d 100644 --- a/libexec/scoop-update.ps1 +++ b/libexec/scoop-update.ps1 @@ -71,6 +71,10 @@ function update_scoop() { else { pushd $currentdir git_pull -q + $res = $lastexitcode + if($res -ne 0) { + abort 'update failed' + } popd }