aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-clean
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-clean')
-rwxr-xr-xbin/ak-clean7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ak-clean b/bin/ak-clean
index 675d34a..98d9c8c 100755
--- a/bin/ak-clean
+++ b/bin/ak-clean
@@ -35,7 +35,8 @@ fullprogrampath="$(realpath $0)"
PROGRAM="$(basename $0)"
descriptionString="Cleans ak temp files"
-source $AK_LIBDIR/_ak_script
+source $AK_LIBDIR/_ak_lib_load
+_ak_lib_load _ak_script
function _ak_tmp_cleanup(){
ls -1 /tmp/aktmp* > /dev/null 2>&1
@@ -53,8 +54,8 @@ then
case $1 in
-h | --help) _ak_usage; exit;;
-c | --clean) _ak_tmp_cleanup; exit;;
- *) _ak_usage;
+ *) _ak_usage err;
esac
else
- _ak_usage
+ _ak_usage err
fi