aboutsummaryrefslogtreecommitdiff
path: root/bin/ak
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-14 22:36:12 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-14 22:36:12 +0300
commit4217dc0560bf40b4fa7ae6a6f964bd56b418712e (patch)
tree020e304e23b29d0eb12199c2f605f1262a3beb04 /bin/ak
parent7743751290bb4e7678940be65725a48386e7b986 (diff)
downloadarching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.tar.gz
arching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.tar.bz2
arching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.zip
Refactoring
Diffstat (limited to 'bin/ak')
-rwxr-xr-xbin/ak8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ak b/bin/ak
index 4d5e9d2..07deae2 100755
--- a/bin/ak
+++ b/bin/ak
@@ -21,7 +21,7 @@ source $AK_WORKDIR/rc
if [ $# -eq 0 ]
then
- logit "WARNING" "No command given"
+ _ak_log_warning "No command given"
(
find $AK_BINDIR | grep 'ak-' | while read available
do
@@ -59,7 +59,7 @@ case "$1" in
shift
if [ -z $1 ] || [ ! -n "$*" ]
then
- logit "ERROR" "No module selected"
+ _ak_log_error "No module selected"
ls -1 $AK_MODULESDIR
exit 1
fi
@@ -83,7 +83,7 @@ else
args="$(echo "$argv"| cut -d ' ' -f $(($counter + 1))-)"
if [ -n "$subcmd" ] && [ -f "$AK_BINDIR/ak-$subcmd" ]
then
- logit "INFO" "Running: ak-$subcmd with args: $args"
+ _ak_log_info "Running: ak-$subcmd with args: $args"
$(echo ak-$subcmd) $args
_ak_exit_program $? "ak-$subcmd command finished";
fi
@@ -95,6 +95,6 @@ else
grep ak-$(echo $argv | cut -d ' ' -f 1) |\
sed -e 's/-/ /g'
done
- logit "ERROR" "Unknown subcommand: $*"
+ _ak_log_error "Unknown subcommand: $*"
exit 1
fi