Syntax corrections in hide_update function
This commit is contained in:
parent
2576442375
commit
5afa7e7b99
1 changed files with 3 additions and 1 deletions
|
@ -55,8 +55,10 @@ function remove_tasks () {
|
||||||
Write-Host -Nonewline -ForegroundColor white " Error "
|
Write-Host -Nonewline -ForegroundColor white " Error "
|
||||||
}
|
}
|
||||||
Write-Host -ForegroundColor green "Done"
|
Write-Host -ForegroundColor green "Done"
|
||||||
|
}
|
||||||
else { Write-Host -ForegroundColor Yellow " Already removed" }
|
else { Write-Host -ForegroundColor Yellow " Already removed" }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function hide_update() {
|
function hide_update() {
|
||||||
|
@ -75,7 +77,7 @@ function hide_update() {
|
||||||
$found = 1
|
$found = 1
|
||||||
if (!$update.IsHidden) {
|
if (!$update.IsHidden) {
|
||||||
$update.IsHidden = "True"
|
$update.IsHidden = "True"
|
||||||
Write-Host -ForegroundColor green "Hidden"
|
Write-Host -ForegroundColor green "Hi dden"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host -ForegroundColor Yellow "Already hidden"
|
Write-Host -ForegroundColor Yellow "Already hidden"
|
||||||
|
|
Reference in a new issue