Skip to content

Commit

Permalink
fix: mount fail on 12.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Sep 3, 2022
1 parent 2eccb4a commit 9df055e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var versionCmd = &cobra.Command{
Short: "Version code of sib",
Long: "Version code of sib",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("1.1.9")
fmt.Println("1.1.10")
},
}

Expand Down
5 changes: 3 additions & 2 deletions src/util/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ func GetDeviceByUdId(udId string) (device giDevice.Device) {
}

func downloadZip(url, version string) (string, error) {
vm := version
if versionMap[version] != "" {
version = versionMap[version]
vm = versionMap[version]
}
f, err := os.Stat(".sib")
if err != nil {
Expand All @@ -86,7 +87,7 @@ func downloadZip(url, version string) (string, error) {
client := http.Client{
Timeout: DownLoadTimeOut,
}
res, err := client.Get(fmt.Sprintf("%s/iOSDeviceSupport/raw/master/DeviceSupport/%s.zip", url, version))
res, err := client.Get(fmt.Sprintf("%s/iOSDeviceSupport/raw/master/DeviceSupport/%s.zip", url, vm))
if err != nil {
return "", err
}
Expand Down

0 comments on commit 9df055e

Please sign in to comment.