Skip to content

Commit

Permalink
windows adb输出空格的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTServ committed Feb 24, 2021
1 parent 6b5d1a5 commit 8a3a727
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func (cm *ConfigModel) ListDevices() (devices []*AdbDeviceInfo, err error) {
} else {
n = "\n"
}
out = strings.Replace(out, fmt.Sprintf("%s%s", n, n), "", -1)
log.Println(strconv.Quote(out))
outN := strings.Split(strings.Trim(strings.TrimSpace(out), n), n)
log.Println(outN)
log.Println(len(outN))
Expand Down

0 comments on commit 8a3a727

Please sign in to comment.