Merge pull request #225 from slurdge/master

Fix #224
This commit is contained in:
Iceman 2019-07-06 15:34:34 +02:00 committed by GitHub
commit 672158e0a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,8 @@ function wait4proxmark_macOS {
function wait4proxmark_Windows {
echo >&2 "Waiting for Proxmark to appear..."
while true; do
device=$(wmic path Win32_SerialPort get DeviceID,PNPDeviceID 2>/dev/null | awk 'NR==2')
if [[ $device =~ VID_9AC4\&PID_4B8F ]]; then
device=$(wmic path Win32_SerialPort where "PNPDeviceID like '%VID_9AC4&PID_4B8F%'" get DeviceID,PNPDeviceID 2>/dev/null | awk 'NR==2')
if [[ $device != "" ]]; then
PM3=${device/ */}
break
fi