From ce44de21d7b83cbe5550b65a91f4cc78d1047267 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 20 Mar 2024 23:57:24 +0100 Subject: [PATCH] Remove redundant script --- scripts/Windows/Config/PowerShell/Install.ps1 | 15 --------------- scripts/Windows/OS/Install.ps1 | 1 - 2 files changed, 16 deletions(-) delete mode 100644 scripts/Windows/Config/PowerShell/Install.ps1 diff --git a/scripts/Windows/Config/PowerShell/Install.ps1 b/scripts/Windows/Config/PowerShell/Install.ps1 deleted file mode 100644 index 8ff0c3d9..00000000 --- a/scripts/Windows/Config/PowerShell/Install.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/pwsh -param($context) -. "$PSScriptRoot/../../Scripts/Context.ps1"; - -Write-Host "Configuring PowerShell"; -Write-Information "Allow addition of any number of profile files"; -[Context] $context = $context; - -$context.AddPowerShellProfileStatement( - @( - '# Profile Files', - '$profilePath = "$PSScriptRoot/profile.d/*.ps1";', - 'if (Test-Path $profilePath) {', - ' Get-Item $profilePath | ForEach-Object { . $_; };', - '}') -join ([System.Environment]::NewLine)); diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index bc784a07..546f7145 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -23,7 +23,6 @@ function Invoke-WindowsInstallation([Context] $context) . "$configPath/Explorer/Install.ps1" $context; . "$configPath/OpenSSH/Install.ps1" $context; . "$configPath/chocolatey/Install.ps1"; - . "$configPath/PowerShell/Install.ps1" $context; $context.RemoveDesktopIcon("*Microsoft Edge*"); $context.Set("InitialConfiguration", 1, "DWord");