install.ps1
PowerShell evaluates downloaded response contentInvokes PowerShell HTTP request cmdlet
SHA-256429dbe5f2251742c103e6f6d425c10651d5edbdf764c3f2d5c0f33642bb191ac
Evidence
1& {
2Set-StrictMode -Version Latest
3$ErrorActionPreference = 'Stop'
4
5$DefaultBootstrapRepository = 'https://github.com/manif3station/developer-dashboard.git'
6$CpanTarget = if ([string]::IsNullOrWhiteSpace($env:DD_INSTALL_CPAN_TARGET)) { '' } else { $env:DD_INSTALL_CPAN_TARGET }
7$Inst …
16:11… ot [string]::IsNullOrWhiteSpace($HOME)) {
17 return $HOME
18 }
19
20 $resolvedHome = [Environment]::GetFolderPath('UserProfile')
21 if (-not [string]::IsNullOrWhiteSpace($resolvedHome)) {
22 return $resolvedHome
⋯4 lines
27
28function Resolve-DashboardRuntimeHome {
29 # Purpose: resolve the home directory the Perl runtime anchors ~/.developer-dashboard under, which is HOME-first and can differ from PowerShell's own $HOME on hosts that export HOME.
30 # Input: the HOME, USERPROFILE, HOMEDRIVE, and HOMEPATH environment variables plus the PowerShell home fallback.
31 # Output: returns a non-empty absolute ho …
⋯5 lines
55
56 foreach ($name in $Names) {
57 $command = Get-Command $name -ErrorAction SilentlyContinue | Select-Object -First 1
58 if (-not $command) {
59 continue
⋯5 lines
⋯4 lines
322
323 try {
324 return (Invoke-WebRequest -UseBasicParsing -Uri $Uri).Content
325 }
326 catch {
327 Write-Host ("Invoke-WebRequest failed for {0}: {1}" -f $Label, $_.Exception.Message) -ForegroundColor Yellow
328 }
329
330 $webClient = New-Object System.Net.WebClient
331 try {
332 return $webClient.DownloadString($Uri)
333 }
334 catch {
⋯4 lines
1177:6… not [string]::IsNullOrWhiteSpace($dashboardShellBootstrapText)) {
1178 Invoke-Expression $dashboardShellBootstrapText
1179}
1180if (-not [string]::IsNullOrWhiteSpace($ShellCommands)) {
1181 Write-Host 'Running post-install activation commands through PowerShell.'
1182 & powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -Command ". '$ProfilePath'; $ShellCommands"
1183 if ($LASTEXITCODE -ne 0) {
1184 throw "Post-install activation commands failed with exit code $LASTEXITCODE …