From 9d79d4deb3c2857473b428eb4701b82400637a66 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 31 Jul 2024 15:52:23 +0200 Subject: [PATCH] Normalize script formatting --- scripts/Windows/Scripts/SetupConfig.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/Windows/Scripts/SetupConfig.ps1 b/scripts/Windows/Scripts/SetupConfig.ps1 index 69c39020..1ac2ab3d 100644 --- a/scripts/Windows/Scripts/SetupConfig.ps1 +++ b/scripts/Windows/Scripts/SetupConfig.ps1 @@ -11,7 +11,7 @@ $null = New-Module { .SYNOPSIS Gets the registry key containing options related to the setup. #> - function Get-SetupConfigKey() { + function Get-SetupConfigKey { if (-not (Test-Path $configRoot)) { $key = New-Item $configRoot; $acl = Get-Acl $configRoot; @@ -39,7 +39,7 @@ $null = New-Module { .PARAMETER Name The name of the option value to get. #> - function Get-SetupOption() { + function Get-SetupOption { param( [string] $Name ) @@ -63,7 +63,7 @@ $null = New-Module { .PARAMETER Value The value to set the option to. #> - function Set-SetupOption() { + function Set-SetupOption { param( [string] $Name, $Value @@ -81,7 +81,7 @@ $null = New-Module { .SYNOPSIS Gets the name of the current setup stage. #> - function Get-Stage() { + function Get-Stage { return Get-SetupOption $stageOption; } @@ -92,7 +92,7 @@ $null = New-Module { .PARAMETER Name The name to set the current stage to. #> - function Set-Stage() { + function Set-Stage { param( [string] $Name )