Compare commits

...

3 commits

View file

@ -176,7 +176,7 @@ $null = New-Module {
#>
function Deploy-SoftwareAction {
param(
[InstallerAction] $Action = $null
[Nullable[InstallerAction]] $Action = $null
)
[bool] $install = $null;
@ -258,7 +258,7 @@ $null = New-Module {
& "$softwarePath/zoxide/Manage.ps1" @arguments;
& "$commonSoftware/posh-git/Manage.ps1" @arguments;
& "$commonSoftware/Terminal-Icons/Manage.ps1" @arguments;
& "$commonSoftware/Oh My Posh/Manage.ps1" @arguments;
& "$softwarePath/Oh My Posh/Manage.ps1" @arguments;
if ($install) {
Install-ChocoPackage `
@ -451,7 +451,7 @@ $null = New-Module {
$timeZoneOption = "Start";
$timeZoneKey = "HKLM:\SYSTEM\CurrentControlSet\Services\tzautoupdate";
$service = Get-Service W32Time;
$autoUpdate = Get-ItemProperty $timeZoneKey -Name $timeZoneOption;
$autoUpdate = (Get-Item $timeZoneKey).GetValue($timeZoneOption);
$stopped = ($service.Status -eq "Stopped");
$setUpdate = { param([int] $Value) Set-ItemProperty $timeZoneKey -Name $timeZoneOption $Value };