aboutsummaryrefslogtreecommitdiff
path: root/modules/smfiles/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/smfiles/main.sh')
-rwxr-xr-xmodules/smfiles/main.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/smfiles/main.sh b/modules/smfiles/main.sh
index 55284e1..7ba20f7 100755
--- a/modules/smfiles/main.sh
+++ b/modules/smfiles/main.sh
@@ -30,12 +30,13 @@ pwd > .pwd
CRD=$(cat .pwd)
fullprogrampath="$(realpath $0)"
-PROGRAM="ak-module-$(realpath $0 | rev |cut -d '/' -f 2 | rev)"
+MODULE="$(realpath $0 | rev |cut -d '/' -f 2 | rev)"
+PROGRAM="ak-module-$MODULE"
descriptionString="Module to files in zchain"
source $AK_LIBDIR/_ak_log
source $AK_LIBDIR/_ak_script
-source $AK_MODULESDIR/$PROGRAM/lib.sh
+source $AK_MODULESDIR/$MODULE/lib.sh
if [ ! -d $ZFILESDIR ]
then