Make sure the macOS device prober only runs if you've supplied the required args

Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/841/head
Jason Koh 4 years ago committed by Jesse Vincent
parent 476cbe1785
commit 94790f8db9

@ -10,6 +10,10 @@ use strict;
my $vid = shift @ARGV;
my $pid = shift @ARGV;
if (!defined $vid || !defined $pid) {
die "$0 has two required parameters, VID and PID";
}
# ioreg might be more machine-readable than system_profiler, but I haven't been able to
# get it to produce useful output
my @output = qx(/usr/sbin/system_profiler SPUSBDataType 2> /dev/null);

Loading…
Cancel
Save