PortValhalla/scripts/Windows/Software/git/Main.ps1

18 lines
641 B
PowerShell
Raw Permalink Normal View History

2024-09-23 01:33:17 +00:00
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
2024-08-10 13:28:10 +00:00
. "$PSScriptRoot/../../../Common/Scripts/Config.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
2024-10-12 15:14:53 +00:00
Start-SoftwareInstaller @args `
2024-10-12 16:13:41 +00:00
-Inherit "$PSScriptRoot/../../../Common/Software/git/Main.ps1" `
2024-10-12 15:14:53 +00:00
-Installer {
$params = "/WindowsTerminalProfile";
2024-10-13 17:52:28 +00:00
$defaultBranch = Get-OSConfig "programs.git.defaultBranch";
2024-08-10 13:28:10 +00:00
2024-10-12 15:14:53 +00:00
if ($defaultBranch) {
$params += " /DefaultBranchName:`"$defaultBranch`"";
}
2024-08-10 13:28:10 +00:00
2024-10-12 15:14:53 +00:00
Install-ChocoPackage git -ArgumentList "--params", $params;
};