Hotfix 34099 merge (#34191)

Fixes main for bad merge related to #34099 causing [build
failures](https://github.com/fleetdm/fleet/actions/runs/18499765354/job/52713214491?pr=34186#step:14:182).
This commit is contained in:
Carlo 2025-10-14 11:08:44 -04:00 committed by GitHub
parent 2b18caaee1
commit f42e45eeec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -568,11 +568,6 @@ type DownloadSoftwareInstallerPayload struct {
Size int64
}
func IsScriptPackage(ext string) bool {
ext = strings.TrimPrefix(ext, ".")
return ext == "sh" || ext == "ps1"
}
func SofwareInstallerSourceFromExtensionAndName(ext, name string) (string, error) {
ext = strings.TrimPrefix(ext, ".")
switch ext {
@ -605,10 +600,6 @@ func SoftwareInstallerPlatformFromExtension(ext string) (string, error) {
return "windows", nil
case "pkg":
return "darwin", nil
case "sh":
return "linux", nil
case "ps1":
return "windows", nil
default:
return "", fmt.Errorf("unsupported file type: %s", ext)
}