aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-05 05:30:33 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-05 05:30:33 +0300
commitdef1c0e0360fc87dd49512183dcc1d35c3b388f9 (patch)
tree3f260142be3edac44787e60b3f636a6728be525c
parent0d1777251dea7d35cd774518959b4377673e1cab (diff)
downloadarching-kaos-tools-def1c0e0360fc87dd49512183dcc1d35c3b388f9.tar.gz
arching-kaos-tools-def1c0e0360fc87dd49512183dcc1d35c3b388f9.tar.bz2
arching-kaos-tools-def1c0e0360fc87dd49512183dcc1d35c3b388f9.zip
No module selected error added
-rwxr-xr-xbin/ak6
1 files changed, 6 insertions, 0 deletions
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";