diff --git a/initialize.ps1 b/initialize.ps1 index 6c7c7e7..1c8caf3 100644 --- a/initialize.ps1 +++ b/initialize.ps1 @@ -53,9 +53,9 @@ param [string] $nchBranch = "" ) -$verbosePreference = "SilentlyContinue" -$warningPreference = 'Continue' -$errorActionPreference = 'Stop' +$verbosePreference = "SilentlyContinue" +$warningPreference = 'Continue' +$errorActionPreference = 'Stop' function Get-VariableDeclaration([string]$name) { $var = Get-Variable -Name $name @@ -144,6 +144,7 @@ if (Test-Path $settingsScript) { Get-VariableDeclaration -name "RequestToken" | Add-Content $settingsScript Get-VariableDeclaration -name "CreateStorageQueue" | Add-Content $settingsScript Get-VariableDeclaration -name "AddTraefik" | Add-Content $settingsScript + Get-VariableDeclaration -name "nchBranch" | Add-Content $settingsScript $passwordKey = New-Object Byte[] 16 [Security.Cryptography.RNGCryptoServiceProvider]::Create().GetBytes($passwordKey)