aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/_ak_lib_load6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/_ak_lib_load b/lib/_ak_lib_load
index 791a4f3..2bc8c5d 100755
--- a/lib/_ak_lib_load
+++ b/lib/_ak_lib_load
@@ -19,11 +19,13 @@
###
function _ak_lib_load(){
- typeset -F | grep $1 2>/dev/null 1>&2 || if [ -n "$AK_LIBDIR" ]
+ typeset -F | grep $1 2>/dev/null 1>&2 || if [ -f "$AK_LIBDIR/$1" ]
then
source $AK_LIBDIR/$1
- else
+ elif [ -f "./lib/$1" ]
source ./lib/$1
+ else
+ printf "Error: Could not load $1 lib"
fi
}