From ea2aca3ad219fd838575c7ca1763ccc0123b653a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 5 Jul 2024 01:01:38 +0300 Subject: duh: check before running whatever, provide nice message --- bin/ak | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/ak b/bin/ak index 7ca3f3c..edf439d 100755 --- a/bin/ak +++ b/bin/ak @@ -69,6 +69,11 @@ case "$1" in exit 1 fi subargs="$*" + if [ ! -f $subcmd/main.sh ] + then + _ak_log_error "No $(basename $subcmd) module" + exit 1 + fi $subcmd/main.sh $subargs _ak_exit_program $? "$subcmd module finished"; ;; -- cgit v1.2.3