aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-profile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-profile')
-rwxr-xr-xbin/ak-profile18
1 files changed, 10 insertions, 8 deletions
diff --git a/bin/ak-profile b/bin/ak-profile
index 4232b55..eaf8e0b 100755
--- a/bin/ak-profile
+++ b/bin/ak-profile
@@ -43,12 +43,13 @@ PROGRAM=$(basename $0)
descriptionString="Profile module"
ZPROFILEDIR="$AK_WORKDIR/profile"
-source $AK_LIBDIR/_ak_log
-source $AK_LIBDIR/_ak_script
-source $AK_LIBDIR/_ak_utils
-source $AK_LIBDIR/_ak_ipfs
-source $AK_LIBDIR/_ak_gpg
-source $AK_LIBDIR/_ak_zblock
+source $AK_LIBDIR/_ak_lib_load
+_ak_lib_load _ak_log
+_ak_lib_load _ak_script
+_ak_lib_load _ak_datetime
+_ak_lib_load _ak_ipfs
+_ak_lib_load _ak_gpg
+_ak_lib_load _ak_zblock
# Whatever the command is, we check if $ZPROFILEDIR is there.
# If NOT we create it and we change dir there.
@@ -234,7 +235,8 @@ if [ ! -z $1 ]; then
-a | --add) _ak_modules_profile_add $2; exit;;
-s | --set) _ak_modules_profile_propset $2 "$3"; exit;;
-g | --get) _ak_modules_profile_propget $2; exit;;
- * ) _ak_usage;;
+ * ) _ak_usage err;;
esac
-else _ak_usage
+else
+ _ak_usage err
fi