Skip to content

Commit

Permalink
Windows prioritise USB connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Gator96100 committed Apr 1, 2021
1 parent 924a816 commit 144dab1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pm3
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 144dab1

Please sign in to comment.