From b6b871247ea3ca95c64c3d56d9ec0d726d03faad Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 18 Oct 2021 20:44:27 -0400 Subject: [PATCH] exit if there is a missing dependency --- kaya | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kaya b/kaya index d8d3923..3583863 100755 --- a/kaya +++ b/kaya @@ -150,10 +150,12 @@ main() { for program in flock pwgen; do if ! type -p $program &>/dev/null; then echo "kaya: error: install $program (package $program on debian based systems)" >&2 + missing_prog=true fi done if ! type -p htpasswd &>/dev/null; then echo "kaya: error: install htpasswd (package apache2-utils on debian based systems)" >&2 + missing_prog=true fi if $missing_prog; then exit 1 -- 2.25.1