diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-05 05:30:33 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-05 05:30:33 +0300 |
commit | def1c0e0360fc87dd49512183dcc1d35c3b388f9 (patch) | |
tree | 3f260142be3edac44787e60b3f636a6728be525c | |
parent | 0d1777251dea7d35cd774518959b4377673e1cab (diff) | |
download | arching-kaos-tools-def1c0e0360fc87dd49512183dcc1d35c3b388f9.tar.gz arching-kaos-tools-def1c0e0360fc87dd49512183dcc1d35c3b388f9.tar.bz2 arching-kaos-tools-def1c0e0360fc87dd49512183dcc1d35c3b388f9.zip |
No module selected error added
-rwxr-xr-x | bin/ak | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"; |