Skip to content

Commit be264e7

Browse files
committed
Skip directly if $false in $ModsPreInstall
1 parent 24d9636 commit be264e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Winget-AutoUpdate/mods/_AppID-template.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ if ($RunSystem) {
105105
Invoke-ModsApp $RunSystem $RunSwitch $RunWait ""
106106
}
107107
if ($Skip) {
108-
Skip-ModsProc $Skip
108+
$result = Skip-ModsProc $Skip
109+
if ($result -eq $false) { return $false }
109110
}
110111
if ($Proc) {
111112
Stop-ModsProc $Proc

0 commit comments

Comments
 (0)