Skip to content

Commit 03ee6de

Browse files
MrNuggelzrashil2000
authored andcommitted
feat(install): Show manifest on installation (ScoopInstaller#4155)
* show manifest on installation * Inline function * Update install.ps1 Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
1 parent 9455b9d commit 03ee6de

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/install.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ function install_app($app, $architecture, $global, $suggested, $use_cache = $tru
3434
return
3535
}
3636

37+
if (get_config 'manifest-review' $false) {
38+
Write-Output 'Manifest:'
39+
Write-Output $manifest | ConvertToPrettyJson
40+
$answer = Read-Host -Prompt "Continue installation? [Y/n]"
41+
if (($answer -eq 'n') -or ($answer -eq 'N')) {
42+
return
43+
}
44+
}
3745
write-output "Installing '$app' ($version) [$architecture]"
3846

3947
$dir = ensure (versiondir $app $version $global)

0 commit comments

Comments
 (0)