[!] Fix parse error on macOS 10.13.6
This commit is contained in:
parent
3e8de7ce8a
commit
7cd6aae082
1 changed files with 3 additions and 3 deletions
|
@ -16,9 +16,9 @@ cat << EEF
|
||||||
============================================
|
============================================
|
||||||
EEF
|
EEF
|
||||||
#
|
#
|
||||||
VendorID=$(ioreg -l | grep "DisplayVendorID" | awk '{print $8}')
|
VendorID=$(ioreg -l | grep "DisplayVendorID" | awk '{print $NF}')
|
||||||
ProductID=$(ioreg -l | grep "DisplayProductID" | awk '{print $8}')
|
ProductID=$(ioreg -l | grep "DisplayProductID" | awk '{print $NF}')
|
||||||
EDID=$(ioreg -l | grep "IODisplayEDID" | awk '{print $8}' | sed -e 's/.$//' -e 's/^.//')
|
EDID=$(ioreg -l | grep "IODisplayEDID" | awk '{print $NF}' | sed -e 's/.$//' -e 's/^.//')
|
||||||
|
|
||||||
Vid=$(echo "obase=16;$VendorID" | bc | tr 'A-Z' 'a-z')
|
Vid=$(echo "obase=16;$VendorID" | bc | tr 'A-Z' 'a-z')
|
||||||
Pid=$(echo "obase=16;$ProductID" | bc | tr 'A-Z' 'a-z')
|
Pid=$(echo "obase=16;$ProductID" | bc | tr 'A-Z' 'a-z')
|
||||||
|
|
Loading…
Reference in a new issue