Hello, does anyone have an EA for identifying whether or not a inventoried Mac has a USB-C port?
Solved
EA for USB-C?
Best answer by donmontalvo
Works with double brackets in theif statement:
#!/bin/sh
# first attempt at USB-C via USB 3.1 sys_prof EA
usb=$(/usr/sbin/system_profiler SPUSBDataType | grep 3.1)
if [[ -z $usb ]];
then
echo "<result>False</result>"
else
echo "<result>True</result>"
fiEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
