From be507e166293d763003c90426ec628ebb1175045 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 15 Jun 2023 16:09:15 +0200 Subject: [PATCH] Avoid spurious 'No history will be recorded' error on fresh install --- client/src/proxmark3.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/client/src/proxmark3.c b/client/src/proxmark3.c index 378b9f0dc..162bc7776 100644 --- a/client/src/proxmark3.c +++ b/client/src/proxmark3.c @@ -250,16 +250,13 @@ main_loop(char *script_cmds_file, char *script_cmd, bool stayInCommandLoop) { if (g_session.incognito) { PrintAndLogEx(INFO, "No history will be recorded"); } else { - bool loaded_history = false; if (searchHomeFilePath(&g_session.history_path, NULL, PROXHISTORY, true) != PM3_SUCCESS) { 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"); + } else { + if (pm3line_load_history(g_session.history_path) != PM3_SUCCESS) { + PrintAndLogEx(INFO, "No previous history could be loaded"); + } } }