mirror of
https://github.com/fleetdm/fleet
synced 2026-05-17 22:18:39 +00:00
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:
parent
2b18caaee1
commit
f42e45eeec
1 changed files with 0 additions and 9 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue