Skip to content

Commit

Permalink
Removed redundant code from EditConfiguration.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickGrub committed Dec 21, 2020
1 parent c3f0ef0 commit 6b27f12
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ $modules | ForEach-Object { Import-Module -Name $_.FullName -Global }
$cfgPath = "c:\temp\powerGateCfg\powerGateConfiguration.xml"
[xml]$cfg = Get-PowerGateConfigFromVault
New-Item -Path "c:\temp\powerGateCfg" -ItemType Directory -Force
if ($null -eq $cfg) {
Copy-Item "C:\ProgramData\coolOrange\powerGate\powerGateConfigurationTemplate.xml" $cfgPath -Force
}
else {
$cfg.Save($cfgPath)
}
$cfg.Save($cfgPath)

Start-Process -FilePath C:\Windows\explorer.exe -ArgumentList "/select, ""$cfgPath"""

0 comments on commit 6b27f12

Please sign in to comment.