Skip to content

Commit

Permalink
chore: ipsw extract on macOS IPSW made annoyingly long folder names…
Browse files Browse the repository at this point in the history
… (no more 😉)
  • Loading branch information
blacktop committed Mar 30, 2024
1 parent f97d559 commit 58445e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ func (i *Info) GetDevicesForKernelCache(kc string) []string {
if utils.StrSliceHas(kcache, filepath.Base(kc)) {
for _, dtree := range i.DeviceTrees {
dt, _ := dtree.Summary()
if strings.ToLower(bconf) == strings.ToLower(dt.BoardConfig) {
if strings.EqualFold(bconf, dt.BoardConfig) {
devices = append(devices, dt.ProductType)
}
}
Expand All @@ -574,6 +574,8 @@ func getAbbreviatedDevList(devices []string) string {
return ""
} else if len(devices) == 1 {
return devices[0]
} else if strings.Contains(devices[0], "Mac") {
return "MacOS"
}

currentDev := devices[0]
Expand Down

0 comments on commit 58445e7

Please sign in to comment.