mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
chore(installer-pwsh): shift Check-Help method above install methods
This commit is contained in:
parent
b90ad23032
commit
f82fdb0e72
1 changed files with 8 additions and 8 deletions
16
Install.ps1
16
Install.ps1
|
|
@ -61,6 +61,14 @@ param(
|
|||
# Constants
|
||||
$PSMinSupportedVersion = 5
|
||||
|
||||
function Check-Help {
|
||||
# Cheap and dirty way of getting the same output as '-?' for '-h' and '-Help'
|
||||
if ($Help) {
|
||||
Get-Help "$PSCommandPath"
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
function Verify-PowerShellVersion {
|
||||
$PSVersion = [int](Select-Object -Property Major -First 1 -ExpandProperty Major -InputObject $PSVersionTable.PSVersion)
|
||||
|
||||
|
|
@ -115,14 +123,6 @@ function Install-Lepton {
|
|||
Install-LeptonToProfiles $AbsoluteProfilePaths
|
||||
}
|
||||
|
||||
function Check-Help {
|
||||
# Cheap and dirty way of getting the same output as '-?' for '-h' and '-Help'
|
||||
if ($Help) {
|
||||
Get-Help "$PSCommandPath"
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
Check-Help
|
||||
Install-Lepton
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue