pm3: look for cmake proxmark3 executable as well

This commit is contained in:
Philippe Teuwen 2020-11-14 00:16:01 +01:00
commit e172c33652

7
pm3
View file

@ -15,7 +15,14 @@ FULLIMAGE="fullimage.elf"
BOOTIMAGE="bootrom.elf" BOOTIMAGE="bootrom.elf"
# try pm3 dirs in current repo workdir # try pm3 dirs in current repo workdir
if [ -d "$PM3PATH/client/" ]; then if [ -d "$PM3PATH/client/" ]; then
if [ -x "$PM3PATH/client/proxmark3" ]; then
CLIENT="$PM3PATH/client/proxmark3" 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 # try install dir
elif [ -x "$PM3PATH/proxmark3" ]; then elif [ -x "$PM3PATH/proxmark3" ]; then
CLIENT="$PM3PATH/proxmark3" CLIENT="$PM3PATH/proxmark3"