Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion host-setup/bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ function Resolve-Mode {
function Show-DownloadAndRunRemedy {
info ' [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12'
info " Invoke-WebRequest -UseBasicParsing -Uri https://raw.githubusercontent.com/$script:REPO/$script:DEFAULT_REF/host-setup/bootstrap.ps1 -OutFile bootstrap.ps1"
info ' powershell -ExecutionPolicy Bypass -File bootstrap.ps1'
# Reuses Get-ForwardedArgument rather than a second implementation: the original invocation's own action and flags belong on the re-run this remedy is telling the caller to make.
$forwarded = (Get-ForwardedArgument) -join ' '
$suffix = if ($forwarded) { " $forwarded" } else { '' }
info " powershell -ExecutionPolicy Bypass -File bootstrap.ps1$suffix"
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Outdated
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
}

function main {
Expand Down
5 changes: 4 additions & 1 deletion host-setup/menu.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,10 @@ function Resolve-Directory {
function Show-DownloadAndRunRemedy {
info ' [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12'
info " Invoke-WebRequest -UseBasicParsing -Uri https://raw.githubusercontent.com/$script:HUB_REPO/$script:DEFAULT_REF/host-setup/menu.ps1 -OutFile menu.ps1"
info ' powershell -ExecutionPolicy Bypass -File menu.ps1'
# Reuses Get-ForwardedArgument rather than a second implementation: the original invocation's own flags (-DryRun among them) belong on the re-run this remedy is telling the caller to make.
$forwarded = (Get-ForwardedArgument) -join ' '
$suffix = if ($forwarded) { " $forwarded" } else { '' }
info " powershell -ExecutionPolicy Bypass -File menu.ps1$suffix"
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Outdated
}

function main {
Expand Down