mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-19 19:38:52 +08:00
cmds history: don't push to history if last command is replayed
This commit is contained in:
parent
7fe5d8cd31
commit
4dfcb727af
1 changed files with 4 additions and 2 deletions
|
@ -167,6 +167,8 @@ main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
|
|||
|
||||
if (cmd[0] != 0x00) {
|
||||
int ret = CommandReceived(cmd);
|
||||
HIST_ENTRY * entry = history_get(history_length);
|
||||
if ((!entry) || (strcmp(entry->line, cmd) != 0))
|
||||
add_history(cmd);
|
||||
|
||||
// exit or quit
|
||||
|
|
Loading…
Add table
Reference in a new issue