From e172c336528cd7885371458a0d2c21ec608c8220 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 14 Nov 2020 00:16:01 +0100 Subject: [PATCH] pm3: look for cmake proxmark3 executable as well --- pm3 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pm3 b/pm3 index 4349ed643..b6ebbc52e 100755 --- a/pm3 +++ b/pm3 @@ -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"