Skip to content

Commit

Permalink
pm3: look for cmake proxmark3 executable as well
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Nov 13, 2020
1 parent cc914cc commit e172c33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pm3
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ FULLIMAGE="fullimage.elf"
BOOTIMAGE="bootrom.elf"
# try pm3 dirs in current repo workdir
if [ -d "$PM3PATH/client/" ]; then
CLIENT="$PM3PATH/client/proxmark3"
if [ -x "$PM3PATH/client/proxmark3" ]; then
CLIENT="$PM3PATH/client/proxmark3"
elif [ -x "$PM3PATH/client/build/proxmark3" ]; then
CLIENT="$PM3PATH/client/build/proxmark3"
else
echo >&2 "[!!] In devel workdir but no executable found, did you compile it?"
exit 1
fi
# try install dir
elif [ -x "$PM3PATH/proxmark3" ]; then
CLIENT="$PM3PATH/proxmark3"
Expand Down

0 comments on commit e172c33

Please sign in to comment.