diff options
Diffstat (limited to 'bin/ak-clean')
| -rwxr-xr-x | bin/ak-clean | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/ak-clean b/bin/ak-clean index 8e55515..98d9c8c 100755 --- a/bin/ak-clean +++ b/bin/ak-clean @@ -35,9 +35,10 @@ 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 -_ak_tmp_cleanup(){ +function _ak_tmp_cleanup(){ ls -1 /tmp/aktmp* > /dev/null 2>&1 if [ $? -ne 0 ] then @@ -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 |
