From 20966bc47665c02ea9a8bd607d705b1918eb269d Mon Sep 17 00:00:00 2001 From: talon Date: Sun, 18 Jun 2023 11:36:28 -0600 Subject: [PATCH] nit --- CrashCourse.md | 2 ++ update_and_clean.ps1 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CrashCourse.md b/CrashCourse.md index 918506e..8910e0e 100644 --- a/CrashCourse.md +++ b/CrashCourse.md @@ -69,6 +69,8 @@ And run like this: ```powershell name_and_age.ps1 -name "Rose" -age "27" +# or, arguments are also positional! +name_and_age.ps1 "Rose" "27" ``` # functions diff --git a/update_and_clean.ps1 b/update_and_clean.ps1 index f1b25ab..c43b540 100644 --- a/update_and_clean.ps1 +++ b/update_and_clean.ps1 @@ -14,7 +14,7 @@ If (!(New-Object Security.Principal.WindowsPrincipal $( ) } # otherwise just exit. - exit + Exit-PSHostProcess } Get-WindowsUpdate -AcceptAll -Install