Skip to content

Commit 39d562e

Browse files
committed
misc/ios: fixup review comments from CL 255257
Change-Id: I247fc9e0e26e706e6af07367f953eaa1b7e544c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/259577 Trust: Elias Naur <mail@eliasnaur.com> Run-TryBot: Elias Naur <mail@eliasnaur.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
1 parent 059ca61 commit 39d562e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

misc/ios/detect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// detect attempts to autodetect the correct
88
// values of the environment variables
9-
// used by go_io_exec.
9+
// used by go_ios_exec.
1010
// detect shells out to ideviceinfo, a third party program that can
1111
// be obtained by following the instructions at
1212
// https://github.com/libimobiledevice/libimobiledevice.

misc/ios/go_ios_exec.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ var lock *os.File
5959

6060
func main() {
6161
log.SetFlags(0)
62-
log.SetPrefix("go_darwin_arm_exec: ")
62+
log.SetPrefix("go_ios_exec: ")
6363
if debug {
6464
log.Println(strings.Join(os.Args, " "))
6565
}
6666
if len(os.Args) < 2 {
67-
log.Fatal("usage: go_darwin_arm_exec a.out")
67+
log.Fatal("usage: go_ios_exec a.out")
6868
}
6969

7070
// For compatibility with the old builders, use a fallback bundle ID
@@ -79,7 +79,7 @@ func main() {
7979

8080
func runMain() (int, error) {
8181
var err error
82-
tmpdir, err = ioutil.TempDir("", "go_darwin_arm_exec_")
82+
tmpdir, err = ioutil.TempDir("", "go_ios_exec_")
8383
if err != nil {
8484
return 1, err
8585
}
@@ -100,7 +100,7 @@ func runMain() (int, error) {
100100
//
101101
// The lock file is never deleted, to avoid concurrent locks on distinct
102102
// files with the same path.
103-
lockName := filepath.Join(os.TempDir(), "go_darwin_arm_exec-"+deviceID+".lock")
103+
lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
104104
lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
105105
if err != nil {
106106
return 1, err

0 commit comments

Comments
 (0)