From eddea69bc0874bb4713c83e02b5198ce369a1160 Mon Sep 17 00:00:00 2001 From: buidav <105074908+buidav@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:01:44 -0700 Subject: [PATCH] correct erorring default variable assignments --- PowerShell/ScubaGear/Modules/ScubaConfig/ScubaConfig.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerShell/ScubaGear/Modules/ScubaConfig/ScubaConfig.psm1 b/PowerShell/ScubaGear/Modules/ScubaConfig/ScubaConfig.psm1 index 93c368e426..8027a0bede 100644 --- a/PowerShell/ScubaGear/Modules/ScubaConfig/ScubaConfig.psm1 +++ b/PowerShell/ScubaGear/Modules/ScubaConfig/ScubaConfig.psm1 @@ -18,12 +18,12 @@ class ScubaConfig { hidden static [ScubaConfig]$_Instance = [ScubaConfig]::new() hidden static [Boolean]$_IsLoaded = $false hidden static [hashtable]$ScubaDefaults = @{ - DefaultOPAPath = (Join-Path -Path $env:USERPROFILE -ChildPath ".scubagear\Tools") + DefaultOPAPath = try {Join-Path -Path $env:USERPROFILE -ChildPath ".scubagear\Tools"} catch {"."}; DefaultProductNames = @("aad", "defender", "exo", "sharepoint", "teams") AllProductNames = @("aad", "defender", "exo", "powerplatform", "sharepoint", "teams") DefaultM365Environment = "commercial" DefaultLogIn = $true - DefaultOutPath = $PWD | Select-Object -ExpandProperty Path + DefaultOutPath = Get-Location | Select-Object -ExpandProperty ProviderPath DefaultOutFolderName = "M365BaselineConformance" DefaultOutProviderFileName = "ProviderSettingsExport" DefaultOutRegoFileName = "TestResults"