Compare commits
3 commits
eab83d2528
...
af0f1dce3e
Author | SHA1 | Date | |
---|---|---|---|
Manuel Thalmann | af0f1dce3e | ||
Manuel Thalmann | 2dab26af15 | ||
Manuel Thalmann | 9c5ee91083 |
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue