Skip to content

Commit

Permalink
fix: 🤫 cmd #583
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Oct 25, 2024
1 parent 718d304 commit 66ccbbb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/ipsw/cmd/download/download_xcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ THE SOFTWARE.
package download

import (
"fmt"
"path"
"strings"

"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal"
Expand Down Expand Up @@ -113,6 +115,11 @@ var xcodeCmd = &cobra.Command{
}
}

if dl.Source == "" {
dl.Source = fmt.Sprintf("https://download.developer.apple.com/Developer_Tools/%s/%s.dmg", strings.ReplaceAll(dl.Name, " ", "_"), strings.ReplaceAll(dl.Name, " ", "_"))
dl.Authentication = "virtual"
}

if dl.Authentication == "" {
log.Infof("Downloading %s...", dl.Name)
downloader := download.NewDownload(proxy, insecure, skipAll, resumeAll, restartAll, false, viper.GetBool("verbose"))
Expand Down

0 comments on commit 66ccbbb

Please sign in to comment.