Skip to content

Commit

Permalink
feat(install): Show manifest on installation (ScoopInstaller#4155)
Browse files Browse the repository at this point in the history
* show manifest on installation

* Inline function

* Update install.ps1

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
  • Loading branch information
2 people authored and se35710 committed Mar 8, 2022
1 parent 9455b9d commit 03ee6de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ function install_app($app, $architecture, $global, $suggested, $use_cache = $tru
return
}

if (get_config 'manifest-review' $false) {
Write-Output 'Manifest:'
Write-Output $manifest | ConvertToPrettyJson
$answer = Read-Host -Prompt "Continue installation? [Y/n]"
if (($answer -eq 'n') -or ($answer -eq 'N')) {
return
}
}
write-output "Installing '$app' ($version) [$architecture]"

$dir = ensure (versiondir $app $version $global)
Expand Down

0 comments on commit 03ee6de

Please sign in to comment.