mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-27 17:43:07 +08:00
Variant for fix #777 independent of sentence and nr of com port digits
This commit is contained in:
parent
47262ce1e9
commit
d229364a21
1 changed files with 1 additions and 1 deletions
2
pm3
2
pm3
|
@ -115,7 +115,7 @@ function get_pm3_list_Windows {
|
||||||
# Need to look for this first, the call to Win32_serialport "crashes" then native bt serial port. Don't ask why.
|
# Need to look for this first, the call to Win32_serialport "crashes" then native bt serial port. Don't ask why.
|
||||||
#BT direct SERIAL PORTS (COM)
|
#BT direct SERIAL PORTS (COM)
|
||||||
if $FINDBTRFCOMM; then
|
if $FINDBTRFCOMM; then
|
||||||
for DEV in $(powershell.exe -command "Get-CimInstance -ClassName Win32_PnPEntity | Where-Object Caption -like 'Standard Serial over Bluetooth link (COM*' | Select Name" 2> /dev/null | awk '$0 ~ /COM/{print substr($6,2,5)}'); do
|
for DEV in $(powershell.exe -command "Get-CimInstance -ClassName Win32_PnPEntity | Where-Object Caption -like 'Standard Serial over Bluetooth link (COM*' | Select Name" 2> /dev/null | awk 'match($0,/COM([0-9]+)/,m){print m[1]}'); do
|
||||||
DEV=${DEV/ */}
|
DEV=${DEV/ */}
|
||||||
PM3LIST+=("$DEV")
|
PM3LIST+=("$DEV")
|
||||||
if [ ${#PM3LIST[*]} -ge "$N" ]; then
|
if [ ${#PM3LIST[*]} -ge "$N" ]; then
|
||||||
|
|
Loading…
Reference in a new issue