Skip to content

Commit

Permalink
chore: move remote --kernel in ahead of --dyld in ipsw download ota
Browse files Browse the repository at this point in the history
… cmd
  • Loading branch information
blacktop committed Dec 2, 2021
1 parent 450e597 commit 0fcf648
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/ipsw/cmd/download_ota.go
Expand Up @@ -248,20 +248,20 @@ var otaDLCmd = &cobra.Command{
if err != nil {
return fmt.Errorf("failed to open remote zip to OTA: %v", err)
}
if remoteDyld {
log.Info("Extracting remote dyld_shared_cache (can be a bit CPU intensive)")
err = ota.RemoteExtract(zr, "^System/Library/.*/dyld_shared_cache.*$", destPath)
if err != nil {
return fmt.Errorf("failed to download dyld_shared_cache from remote ota: %v", err)
}
}
if remoteKernel {
log.Info("Extracting remote kernelcache")
err = kernelcache.RemoteParse(zr, destPath)
if err != nil {
return fmt.Errorf("failed to download kernelcache from remote ota: %v", err)
}
}
if remoteDyld {
log.Info("Extracting remote dyld_shared_cache (can be a bit CPU intensive)")
err = ota.RemoteExtract(zr, "^System/Library/.*/dyld_shared_cache.*$", destPath)
if err != nil {
return fmt.Errorf("failed to download dyld_shared_cache from remote ota: %v", err)
}
}
}
} else {
downloader := download.NewDownload(proxy, insecure, skipAll, resumeAll, restartAll, Verbose)
Expand Down

0 comments on commit 0fcf648

Please sign in to comment.