diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-14 22:36:12 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-14 22:36:12 +0300 |
commit | 4217dc0560bf40b4fa7ae6a6f964bd56b418712e (patch) | |
tree | 020e304e23b29d0eb12199c2f605f1262a3beb04 /modules/comments/main.sh | |
parent | 7743751290bb4e7678940be65725a48386e7b986 (diff) | |
download | arching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.tar.gz arching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.tar.bz2 arching-kaos-tools-4217dc0560bf40b4fa7ae6a6f964bd56b418712e.zip |
Refactoring
Diffstat (limited to 'modules/comments/main.sh')
-rwxr-xr-x | modules/comments/main.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comments/main.sh b/modules/comments/main.sh index 6193e2f..f5ebabc 100755 --- a/modules/comments/main.sh +++ b/modules/comments/main.sh @@ -24,9 +24,9 @@ TEMP="/tmp/aktmp" if [ ! -d $ZCOMMENTSDIR ]; then mkdir $ZCOMMENTSDIR cd $ZCOMMENTSDIR - logit "INFO" "zcommentsdir created" + _ak_log_info "zcommentsdir created" else - logit "INFO" "zcommentsdir found" + _ak_log_info "zcommentsdir found" fi _ak_modules_comments_create(){ @@ -34,7 +34,7 @@ _ak_modules_comments_create(){ then REFER_TO="$1" else - logit "ERROR" "No reference given" + _ak_log_error "No reference given" echo "ERROR" "No reference given" exit 1 fi @@ -47,7 +47,7 @@ _ak_modules_comments_create(){ IPFS_FILE=$(_ak_ipfs_add $COMMENTS_FILE) mv $COMMENTS_FILE $ZCOMMENTSDIR/$TO_FILE _ak_modules_comments_add $TO_FILE - logit "INFO" "Adding to git repo..." + _ak_log_info "Adding to git repo..." cd $ZCOMMENTSDIR if [ ! -z $REFER_TO ] then |