From 7396fbeaf2be2fc814a1db6a54c56a8a047260f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pl=C3=ADnio=20Larrubia?= Date: Tue, 25 Jun 2024 10:48:05 -0300 Subject: [PATCH] Stop logging before using the GPG/SSH setup --- WinDebloatTools.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WinDebloatTools.ps1 b/WinDebloatTools.ps1 index 2658af8c..15ae3d25 100644 --- a/WinDebloatTools.ps1 +++ b/WinDebloatTools.ps1 @@ -1544,7 +1544,9 @@ function Show-GUI() { If ($InstallGitGnupgSshSetup.CheckState -eq "Checked") { If (!($Script:UninstallSwitch)) { + Stop-Logging # Don't log any credential info after this point Open-PowerShellFilesCollection -RelativeLocation "src\scripts\other-scripts" -Scripts @("Git-GnupgSshKeysSetup.ps1") -DoneTitle $DoneTitle -DoneMessage $DoneMessage + Start-Logging -File "$CurrentFileName-$(Get-Date -Format "yyyy-MM")" } Else { $AppsSelected.WingetApps.AddRange(@("Git.Git", "GnuPG.GnuPG")) # Installed before inside the script }