From da91eb36568bde5b7980f1a9825c4e7e44509ec0 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Sun, 26 May 2019 17:02:00 -0500 Subject: [PATCH] (log) add separators for package execution output Sometimes in reading over the log it's hard to determine where the package script execution is occurring. To ensure it is easier to follow, add separators. --- src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1 b/src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1 index a27e771fb3..f38bac837c 100644 --- a/src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1 +++ b/src/chocolatey.resources/helpers/chocolateyScriptRunner.ps1 @@ -12,6 +12,7 @@ if ($env:ChocolateyEnvironmentDebug -eq 'true') { $global:DebugPreference = "Con $global:VerbosePreference = "SilentlyContinue" if ($env:ChocolateyEnvironmentVerbose -eq 'true') { $global:VerbosePreference = "Continue"; $verbosity = $true } +Write-Debug '---------------------------Script Execution---------------------------' Write-Debug "Running 'ChocolateyScriptRunner' for $($env:packageName) v$($env:packageVersion) with packageScript `'$packageScript`', packageFolder:`'$($env:packageFolder)`', installArguments: `'$installArguments`', packageParameters: `'$packageParameters`'," ## Set the culture to invariant @@ -74,4 +75,6 @@ if ($exitCode -ne $null -and $exitCode -ne '' -and $exitCode -ne 0) { Set-PowerShellExitCode $exitCode } +Write-Debug '----------------------------------------------------------------------' + Exit $exitCode \ No newline at end of file