From 646f1390c11ce59f1a7ea43ab5e3552faaff157d Mon Sep 17 00:00:00 2001 From: alarig Date: Sun, 6 May 2018 12:11:31 +0200 Subject: [PATCH] Add test to avoid useless message --- check_deps.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_deps.sh b/check_deps.sh index 2b4b4c0..d42e9b6 100755 --- a/check_deps.sh +++ b/check_deps.sh @@ -11,4 +11,8 @@ check_bin_in_path() { check_bin_in_path "eix-sync emerge grep echo cat lsof awk sort" check_bin_in_path "restart-services sendmail rm" -printf "You’r missing this:${MISSING}\n" +if [ ! -z "${MISSING}" ]; then + printf "You’r missing this:${MISSING}\n" +else + printf "All looks good\n" +fi