fix: show output for shell install/update checks

This commit is contained in:
2025-06-27 01:52:56 +03:00
parent 5f5943ba3f
commit fc7e2b9bf4

View File

@@ -65,13 +65,13 @@ func (i *InstallerBase) BaseValidate() []ValidationError {
func (i *InstallerBase) RunCustomUpdateCheck() (bool, error) {
envShell := utils.GetOSShell(i.GetData().EnvShell)
args := utils.GetOSShellArgs(*i.GetData().CheckHasUpdate)
return utils.RunCmdGetSuccess(i.Data.Environ(), envShell, args...)
return utils.RunCmdGetSuccessPassThrough(i.Data.Environ(), envShell, args...)
}
func (i *InstallerBase) RunCustomInstallCheck() (bool, error) {
envShell := utils.GetOSShell(i.GetData().EnvShell)
args := utils.GetOSShellArgs(*i.GetData().CheckInstalled)
return utils.RunCmdGetSuccess(i.Data.Environ(), envShell, args...)
return utils.RunCmdGetSuccessPassThrough(i.Data.Environ(), envShell, args...)
}
func (i *InstallerBase) HasCustomUpdateCheck() bool {