diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 03:40:07 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 03:40:07 +0200 |
commit | 5c08911132823735801aa70a4e2a23bc3f1c859a (patch) | |
tree | 17dc9ca8c8c2958cc8323484b1e9df1bd1630569 /bin/ak | |
parent | 5ad0e143e7f76c740defe6d983e4c54007a23b25 (diff) | |
download | arching-kaos-tools-5c08911132823735801aa70a4e2a23bc3f1c859a.tar.gz arching-kaos-tools-5c08911132823735801aa70a4e2a23bc3f1c859a.tar.bz2 arching-kaos-tools-5c08911132823735801aa70a4e2a23bc3f1c859a.zip |
Moving stuff to lib
Diffstat (limited to 'bin/ak')
-rwxr-xr-x | bin/ak | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,6 +2,7 @@ PROGRAM=$(basename $0) source $AK_LIBDIR/_ak_logit +source $AK_LIBDIR/_ak_script_exit if [ $# -eq 0 ] then @@ -26,7 +27,7 @@ subcmd="$(echo $* | sed -e 's/ /-/g')" if [ -f "$AK_BINDIR/ak-$subcmd" ] then $(echo ak-$subcmd) - exit $? + exit_program $? "ak-$subcmd command finished"; else argc=$# argv="$*" @@ -39,7 +40,7 @@ else then logit "INFO" "Running: ak-$subcmd with args: $args" $(echo ak-$subcmd) $args - exit $? + exit_program $? "ak-$subcmd command finished"; fi counter=$(($counter + 1)) done |