From ff04205b2d794ae9157f9c423295da97bcebd90e Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Sat, 22 Sep 2018 23:25:35 +0300 Subject: Add search action --- src/actionhelper.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/actionhelper.c') diff --git a/src/actionhelper.c b/src/actionhelper.c index 9710ef8..e0876eb 100644 --- a/src/actionhelper.c +++ b/src/actionhelper.c @@ -198,11 +198,14 @@ void print_LIST_result(int err) { } void print_SEARCH_result(int err) { + if (err == 2) { + printf("No grep avaliable. Please make sure you have grep installed.\n"); + return; + } if (!err) { - printf("succes\n"); return; } - printf("Not Supported\n"); + printf("Wrong search.\n"); } void print_HELP_result(int err) { -- cgit v1.2.3