File size: 270 Bytes
79580b2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
try {
git pull origin master 2>$null
if ($LASTEXITCODE -eq 0) {
Write-Output "Successfully updated WebUI."
} else {
throw
}
} catch {
git reset --hard
git pull origin master
Write-Output "Successfully updated WebUI."
}
pause
|