Skip to content

Commit

Permalink
fix: add logging to dowload git cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Feb 8, 2022
1 parent 05179a1 commit ccb8792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/ipsw/cmd/download_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ var gitCmd = &cobra.Command{
downloadProduct := viper.GetString("download.git.product")

if len(downloadProduct) == 0 {
log.Info("Querying github.com/orgs/apple-oss-distributions for repositories...")
repos, err = queryAppleGithubRepos(proxy, insecure)
if err != nil {
return err
Expand Down Expand Up @@ -369,6 +370,9 @@ var gitCmd = &cobra.Command{
destName += ".tar.gz"

if _, err := os.Stat(destName); os.IsNotExist(err) {
log.WithFields(log.Fields{
"file": destName,
}).Info("Downloading")
// download file
downloader := download.NewDownload(proxy, insecure, false, false, false, false)
downloader.URL = latestTag.TarURL
Expand Down

0 comments on commit ccb8792

Please sign in to comment.