Use internal OS detection

This commit is contained in:
Manuel Thalmann 2024-08-07 21:35:03 +02:00
parent bc571560a9
commit a3b17d50a5

View file

@ -16,14 +16,10 @@ Start-SoftwareInstaller @PSBoundParameters `
& $Installer -Action ([InstallerAction]::Configure); & $Installer -Action ([InstallerAction]::Configure);
} ` } `
-Configurator { -Configurator {
param(
[hashtable] $Arguments
)
[string] $globalDir = $null; [string] $globalDir = $null;
$indicator = "# Profile Files"; $indicator = "# Profile Files";
if ($Arguments.Linux) { if (-not $IsWindows) {
$globalDir = '"/etc/powershell/conf.d"'; $globalDir = '"/etc/powershell/conf.d"';
} else { } else {
$globalDir = '"$env:ProgramData/PowerShell/conf.d"'; $globalDir = '"$env:ProgramData/PowerShell/conf.d"';