aboutsummaryrefslogtreecommitdiff
path: root/bin/ak
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak')
-rwxr-xr-xbin/ak18
1 files changed, 10 insertions, 8 deletions
diff --git a/bin/ak b/bin/ak
index c64ee44..a1bc85f 100755
--- a/bin/ak
+++ b/bin/ak
@@ -52,14 +52,16 @@ fi
subcmd="$(echo $* | sed -e 's/ /-/g')"
# Add functionality for separate modules directory
-# case "$1" in
-# -m|--module)
-# shift
-# subcmd="modules/$(echo $* | sed -e 's/ /-/g')"
-# ;;
-# esac
-#
-# echo $subcmd
+case "$1" in
+ -m|--module)
+ shift
+ subcmd="$AK_MODULESDIR/$(echo $1 | sed -e 's/ /-/g')"
+ shift
+ subargs="$*"
+ $subcmd $subargs
+ _ak_exit_program $? "$subcmd module finished";
+ ;;
+esac
if [ -f "$AK_BINDIR/ak-$subcmd" ]
then