Skip to content

Commit

Permalink
chg: remove double exit text
Browse files Browse the repository at this point in the history
chg: escape chars didn't work on apple
  • Loading branch information
iceman1001 committed Feb 5, 2018
1 parent 9ba8655 commit c725485
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/cmdmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static command_t CommandTable[] = {
{"lf", CmdLF, 1, "{ Low Frequency commands... }"},
{"reveng", CmdRev, 1, "Crc calculations from the software reveng 1.44"},
{"script", CmdScript, 1, "{ Scripting commands }"},
{"quit", CmdQuit, 1, "Exit program"},
{"quit", CmdQuit, 1, ""},
{"exit", CmdQuit, 1, "Exit program"},
{NULL, NULL, 0, NULL}
};
Expand Down
5 changes: 2 additions & 3 deletions client/cmdparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int CmdsParse(const command_t Commands[], const char *Cmd) {
matches++;
}
}
if(matches == 1) i = last_match;
if (matches == 1) i = last_match;
}

if (Commands[i].Name) {
Expand All @@ -76,8 +76,7 @@ char pparent[512] = {0};
char *parent = pparent;

void dumpCommandsRecursive(const command_t cmds[], int markdown) {
if (cmds[0].Name == NULL)
return;
if (cmds[0].Name == NULL) return;

int i = 0;
int w_cmd = 25;
Expand Down
2 changes: 1 addition & 1 deletion client/proxmark3.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct receiver_arg {
int run;
};

#if defined(__linux__) || (__APPLE__)
#if defined(__linux__)
static void showBanner(void){
printf("\n\n");
printf("\e[34m██████╗ ███╗ ███╗ ████╗\e[0m ...iceman fork\n");
Expand Down

0 comments on commit c725485

Please sign in to comment.