Skip to content

Commit a3991cf

Browse files
matteosuppofacchinm
authored andcommitted
Fix stupid typo again
1 parent 57fdc3e commit a3991cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

seriallist_darwin.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package main
33
import (
44
"os/exec"
55
"strings"
6+
7+
"github.com/arduino/arduino-create-agent/utilities"
68
)
79

810
// execute system_profiler SPUSBDataType | grep "Vendor ID: 0x2341" -A5 -B2
@@ -28,12 +30,12 @@ func associateVidPidWithPort(ports []OsSerialPort) []OsSerialPort {
2830

2931
usbcmd := exec.Command("system_profiler", "SPUSBDataType")
3032
grepcmd := exec.Command("grep", "Location ID: 0x"+port_hash[:len(port_hash)-1], "-B6")
31-
cmdOutput, _ := utillities.PipeCommands(usbcmd, grepcmd)
33+
cmdOutput, _ := utilities.PipeCommands(usbcmd, grepcmd)
3234

3335
if len(cmdOutput) == 0 {
3436
usbcmd = exec.Command("system_profiler", "SPUSBDataType")
3537
grepcmd = exec.Command("grep" /*"Serial Number: "+*/, strings.Trim(port_hash, "0"), "-B3", "-A3")
36-
cmdOutput, _ = utillities.PipeCommands(usbcmd, grepcmd)
38+
cmdOutput, _ = utilities.PipeCommands(usbcmd, grepcmd)
3739
}
3840

3941
if len(cmdOutput) == 0 {

0 commit comments

Comments
 (0)