Use internal OS detection
This commit is contained in:
parent
a34aa6c143
commit
b477870829
1 changed files with 15 additions and 19 deletions
|
@ -16,14 +16,10 @@ Start-SoftwareInstaller @PSBoundParameters `
|
|||
& $Installer -Action ([InstallerAction]::Configure);
|
||||
} `
|
||||
-Configurator {
|
||||
param(
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
[string] $globalDir = $null;
|
||||
$indicator = "# Profile Files";
|
||||
|
||||
if ($Arguments.Linux) {
|
||||
if (-not $IsWindows) {
|
||||
$globalDir = '"/etc/powershell/conf.d"';
|
||||
} else {
|
||||
$globalDir = '"$env:ProgramData/PowerShell/conf.d"';
|
||||
|
|
Loading…
Reference in a new issue