From 9718af480a139b430c5aee900b0ea3eac5314ef8 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 6 Jan 2022 15:18:56 +0100 Subject: [PATCH] Avoid com port in commands.json --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3e612a3e4..6b041b54a 100644 --- a/Makefile +++ b/Makefile @@ -268,8 +268,8 @@ style: [ -x client/proxmark3 ] && client/proxmark3 -m > doc/commands.md # Make sure python3 is installed @command -v python3 >/dev/null || ( echo "Please install 'python3' package first" ; exit 1 ) - # Update commands.json - [ -x client/proxmark3 ] && client/proxmark3 --fulltext | python3 client/pyscripts/pm3_help2json.py - doc/commands.json + # Update commands.json, patch port in cas it was run under Windows + [ -x client/proxmark3 ] && client/proxmark3 --fulltext | sed 's#com[0-9]#/dev/ttyacm0#'|python3 client/pyscripts/pm3_help2json.py - doc/commands.json # Update the readline autocomplete autogenerated code [ -x client/proxmark3 ] && client/proxmark3 --fulltext | python3 client/pyscripts/pm3_help2list.py - client/src/rl_vocabulory.h