woops, just exit
This commit is contained in:
parent
0efddd49e1
commit
f1adc55735
|
@ -7,7 +7,7 @@ param(
|
||||||
|
|
||||||
if (!(Get-Command "magick.exe" -ErrorAction SilentlyContinue)) {
|
if (!(Get-Command "magick.exe" -ErrorAction SilentlyContinue)) {
|
||||||
Write-Host "There's no magick.exe to work with!"
|
Write-Host "There's no magick.exe to work with!"
|
||||||
Exit-PSHostProcess
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Test-Path $in -PathType container) {
|
if (Test-Path $in -PathType container) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ If (!(New-Object Security.Principal.WindowsPrincipal $(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
# otherwise just exit.
|
# otherwise just exit.
|
||||||
Exit-PSHostProcess
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
Get-WindowsUpdate -AcceptAll -Install
|
Get-WindowsUpdate -AcceptAll -Install
|
||||||
|
|
Loading…
Reference in a new issue