Syntax corrections in hide_update function

This commit is contained in:
Yorick Barbanneau 2016-02-05 12:57:36 +01:00
parent 2576442375
commit 5afa7e7b99

View file

@ -55,8 +55,10 @@ function remove_tasks () {
Write-Host -Nonewline -ForegroundColor white " Error "
}
Write-Host -ForegroundColor green "Done"
}
else { Write-Host -ForegroundColor Yellow " Already removed" }
}
}
}
function hide_update() {
@ -75,7 +77,7 @@ function hide_update() {
$found = 1
if (!$update.IsHidden) {
$update.IsHidden = "True"
Write-Host -ForegroundColor green "Hidden"
Write-Host -ForegroundColor green "Hi dden"
}
else {
Write-Host -ForegroundColor Yellow "Already hidden"