Skip to content

Commit 3c6dad7

Browse files
committed
Fix a typo for darwin
1 parent aba9bc6 commit 3c6dad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seriallist_darwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ func associateVidPidWithPort(ports []OsSerialPort) []OsSerialPort {
2828

2929
usbcmd := exec.Command("system_profiler", "SPUSBDataType")
3030
grepcmd := exec.Command("grep", "Location ID: 0x"+port_hash[:len(port_hash)-1], "-B6")
31-
cmdOutput, _ := pipe_commands(usbcmd, grepcmd)
31+
cmdOutput, _ := utillities.PipeCommands(usbcmd, grepcmd)
3232

3333
if len(cmdOutput) == 0 {
3434
usbcmd = exec.Command("system_profiler", "SPUSBDataType")
3535
grepcmd = exec.Command("grep" /*"Serial Number: "+*/, strings.Trim(port_hash, "0"), "-B3", "-A3")
36-
cmdOutput, _ = pipe_commands(usbcmd, grepcmd)
36+
cmdOutput, _ = utillities.PipeCommands(usbcmd, grepcmd)
3737
}
3838

3939
if len(cmdOutput) == 0 {

0 commit comments

Comments
 (0)