diff --git a/rtracker b/rtracker index b670877..459ba78 100755 Binary files a/rtracker and b/rtracker differ diff --git a/rtracker.c b/rtracker.c index 44cf7fe..a180d80 100644 --- a/rtracker.c +++ b/rtracker.c @@ -83,11 +83,15 @@ void getOut() { int main(int argc, char **argv) { bool isCommand = false; // Flag for detect command section bool forceOut = false; + bool justTry = false; // No out if error, just try for(int i = 1; i < argc; i++) { if (isCommand == false) { if (strcmp(argv[i], "%o") == 0) { isCommand = true; forceOut = true; + } else if (strcmp(argv[i], "%t") == 0) { + isCommand = true; + justTry = true; } else if (strcmp(argv[i], "%%") == 0) { isCommand = true; } else { @@ -110,10 +114,14 @@ int main(int argc, char **argv) { } } else { kill_thread(thread_handle); - printf("\r[%s𐄂%s] %s\n", CL_RED, CL_NORMAL, comment); - // Get out of failed command - getOut(); - return 1; + if (justTry) { + printf("\r[%s🗸%s] %s\n", CL_GREEN, CL_NORMAL, comment); + } else { + printf("\r[%s𐄂%s] %s\n", CL_RED, CL_NORMAL, comment); + // Get out of failed command + getOut(); + return 1; + } } return 0;