From def1c0e0360fc87dd49512183dcc1d35c3b388f9 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 5 Jun 2024 05:30:33 +0300 Subject: No module selected error added --- bin/ak | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ak b/bin/ak index a1bc85f..c9f960e 100755 --- a/bin/ak +++ b/bin/ak @@ -57,6 +57,12 @@ case "$1" in shift subcmd="$AK_MODULESDIR/$(echo $1 | sed -e 's/ /-/g')" shift + if [ -z $* ] || [ ! -n "$*" ] + then + logit "ERROR" "No module selected" + ls -1 $AK_MODULESDIR + exit 1 + fi subargs="$*" $subcmd $subargs _ak_exit_program $? "$subcmd module finished"; -- cgit v1.2.3