From 144dab14e986335f8ea4048a816013a042548e7e Mon Sep 17 00:00:00 2001 From: Gator96100 Date: Thu, 1 Apr 2021 16:38:45 +0200 Subject: [PATCH] Windows prioritise USB connections --- pm3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pm3 b/pm3 index 3c69fea61..5fef9e6ee 100755 --- a/pm3 +++ b/pm3 @@ -157,7 +157,8 @@ function get_pm3_list_Windows { exit 1 fi fi - PM3LIST+=("$DEV") + #Prioritise USB connections + PM3LIST=("$DEV" "${PM3LIST[@]}") if [ ${#PM3LIST[*]} -ge "$N" ]; then return fi @@ -211,7 +212,8 @@ function get_pm3_list_WSL { exit 1 fi fi - PM3LIST+=("$DEV") + #Prioritise USB connections + PM3LIST=("$DEV" "${PM3LIST[@]}") if [ ! -w "$DEV" ]; then echo "[!] Let's give users read/write access to $DEV" sudo chmod 666 "$DEV"