From 3a0a9b496d60297b6ffabfd069e6df4b2d4c7ef9 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sun, 3 Apr 2022 09:12:39 +0200 Subject: [PATCH] added timeout if not run silently --- Winget-AutoUpdate-Install.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index 6aa4a83..c6f65e4 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -220,4 +220,7 @@ else { } Write-host "End of process." -Start-Sleep 3 + +if (!$Silent) { + Timeout 10 +} \ No newline at end of file