mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 14:23:50 -07:00
Avoid spurious 'No history will be recorded' error on fresh install
This commit is contained in:
parent
272170dc16
commit
be507e1662
1 changed files with 4 additions and 7 deletions
|
@ -250,16 +250,13 @@ main_loop(char *script_cmds_file, char *script_cmd, bool stayInCommandLoop) {
|
||||||
if (g_session.incognito) {
|
if (g_session.incognito) {
|
||||||
PrintAndLogEx(INFO, "No history will be recorded");
|
PrintAndLogEx(INFO, "No history will be recorded");
|
||||||
} else {
|
} else {
|
||||||
bool loaded_history = false;
|
|
||||||
if (searchHomeFilePath(&g_session.history_path, NULL, PROXHISTORY, true) != PM3_SUCCESS) {
|
if (searchHomeFilePath(&g_session.history_path, NULL, PROXHISTORY, true) != PM3_SUCCESS) {
|
||||||
g_session.history_path = NULL;
|
g_session.history_path = NULL;
|
||||||
} else {
|
|
||||||
loaded_history = (pm3line_load_history(g_session.history_path) == PM3_SUCCESS);
|
|
||||||
}
|
|
||||||
if (loaded_history) {
|
|
||||||
pm3line_install_signals();
|
|
||||||
} else {
|
|
||||||
PrintAndLogEx(ERR, "No history will be recorded");
|
PrintAndLogEx(ERR, "No history will be recorded");
|
||||||
|
} else {
|
||||||
|
if (pm3line_load_history(g_session.history_path) != PM3_SUCCESS) {
|
||||||
|
PrintAndLogEx(INFO, "No previous history could be loaded");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue