aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/_ak_lib_load8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/_ak_lib_load b/lib/_ak_lib_load
index 0676b16..791a4f3 100755
--- a/lib/_ak_lib_load
+++ b/lib/_ak_lib_load
@@ -19,5 +19,11 @@
###
function _ak_lib_load(){
- typeset -F | grep $1 2>/dev/null 1>&2 || ( source $AK_LIBDIR/$1 || source ./lib/$1 )
+ typeset -F | grep $1 2>/dev/null 1>&2 || if [ -n "$AK_LIBDIR" ]
+ then
+ source $AK_LIBDIR/$1
+ else
+ source ./lib/$1
+ fi
+
}