mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
skip comments in cmdscripts
This commit is contained in:
parent
2ddbbd255b
commit
7594ea4942
1 changed files with 3 additions and 0 deletions
|
@ -176,6 +176,9 @@ int CmdsParse(const command_t Commands[], const char *Cmd) {
|
||||||
memset(cmd_name, 0, sizeof(cmd_name));
|
memset(cmd_name, 0, sizeof(cmd_name));
|
||||||
sscanf(Cmd, "%127s%n", cmd_name, &len);
|
sscanf(Cmd, "%127s%n", cmd_name, &len);
|
||||||
str_lower(cmd_name);
|
str_lower(cmd_name);
|
||||||
|
// Comment
|
||||||
|
if (cmd_name[0] == '#')
|
||||||
|
return PM3_SUCCESS;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (Commands[i].Name) {
|
while (Commands[i].Name) {
|
||||||
if (0 == strcmp(Commands[i].Name, cmd_name)) {
|
if (0 == strcmp(Commands[i].Name, cmd_name)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue