mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
fiddle
This commit is contained in:
parent
173f2d472d
commit
519d2e4917
1 changed files with 6 additions and 3 deletions
|
@ -143,12 +143,15 @@ int push_cmdscriptfile(char *path, bool stayafter) {
|
||||||
PrintAndLogEx(ERR, "Too many nested scripts, skipping %s\n", path);
|
PrintAndLogEx(ERR, "Too many nested scripts, skipping %s\n", path);
|
||||||
return PM3_EMALLOC;
|
return PM3_EMALLOC;
|
||||||
}
|
}
|
||||||
FILE *tmp = fopen(path, "r");
|
|
||||||
if (tmp == NULL)
|
FILE *f = fopen(path, "r");
|
||||||
|
if (f == NULL)
|
||||||
return PM3_EFILE;
|
return PM3_EFILE;
|
||||||
|
|
||||||
if (cmdscriptfile_idx == 0)
|
if (cmdscriptfile_idx == 0)
|
||||||
cmdscriptfile_stayafter = stayafter;
|
cmdscriptfile_stayafter = stayafter;
|
||||||
cmdscriptfile[++cmdscriptfile_idx] = tmp;
|
|
||||||
|
cmdscriptfile[++cmdscriptfile_idx] = f;
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue