mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08: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));
|
||||
sscanf(Cmd, "%127s%n", cmd_name, &len);
|
||||
str_lower(cmd_name);
|
||||
// Comment
|
||||
if (cmd_name[0] == '#')
|
||||
return PM3_SUCCESS;
|
||||
int i = 0;
|
||||
while (Commands[i].Name) {
|
||||
if (0 == strcmp(Commands[i].Name, cmd_name)) {
|
||||
|
|
Loading…
Reference in a new issue