Improve portability
This commit is contained in:
parent
f80638bba4
commit
2c077db36b
@ -204,7 +204,7 @@ if (Test-Path -LiteralPath ('{0}' -f $GhcupDir)) {
|
|||||||
} elseif (!($Silent)) {
|
} elseif (!($Silent)) {
|
||||||
$decision = $Host.UI.PromptForChoice('Install GHCup'
|
$decision = $Host.UI.PromptForChoice('Install GHCup'
|
||||||
, 'GHCup is already installed, what do you want to do?'
|
, 'GHCup is already installed, what do you want to do?'
|
||||||
, @('&Reinstall'
|
, [System.Management.Automation.Host.ChoiceDescription[]] @('&Reinstall'
|
||||||
'&Continue'
|
'&Continue'
|
||||||
'&Abort'), 1)
|
'&Abort'), 1)
|
||||||
} else {
|
} else {
|
||||||
@ -234,7 +234,7 @@ if (!(Test-Path -Path ('{0}' -f $MsysDir))) {
|
|||||||
} else {
|
} else {
|
||||||
$msys2Decision = $Host.UI.PromptForChoice('Install MSys2'
|
$msys2Decision = $Host.UI.PromptForChoice('Install MSys2'
|
||||||
, 'Do you want GHCup to install a default MSys2 toolchain (recommended)?'
|
, 'Do you want GHCup to install a default MSys2 toolchain (recommended)?'
|
||||||
, @('&Yes'
|
, [System.Management.Automation.Host.ChoiceDescription[]] @('&Yes'
|
||||||
'&No'), 0)
|
'&No'), 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,7 +271,7 @@ if (!(Test-Path -Path ('{0}' -f $MsysDir))) {
|
|||||||
} elseif (!($Silent)) {
|
} elseif (!($Silent)) {
|
||||||
$ghcBuildDeps = $Host.UI.PromptForChoice('Install Dependencies'
|
$ghcBuildDeps = $Host.UI.PromptForChoice('Install Dependencies'
|
||||||
, 'Install various dependencies to be able to build GHC itself and make use of ''ghcup compile'' command? (recommended, however this might take a while)'
|
, 'Install various dependencies to be able to build GHC itself and make use of ''ghcup compile'' command? (recommended, however this might take a while)'
|
||||||
, @('&Yes'
|
, [System.Management.Automation.Host.ChoiceDescription[]] @('&Yes'
|
||||||
'&No'), 0)
|
'&No'), 0)
|
||||||
} else {
|
} else {
|
||||||
$ghcBuildDeps = 0
|
$ghcBuildDeps = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user