From 4217dc0560bf40b4fa7ae6a6f964bd56b418712e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 14 Jun 2024 22:36:12 +0300 Subject: Refactoring --- bin/ak-sm-filesplitter | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'bin/ak-sm-filesplitter') diff --git a/bin/ak-sm-filesplitter b/bin/ak-sm-filesplitter index f9f5cff..7365b19 100755 --- a/bin/ak-sm-filesplitter +++ b/bin/ak-sm-filesplitter @@ -51,14 +51,14 @@ then mkdir -p "$TECHDIR" if [ "$?" == 0 ] then - logit "INFO" "Folder $TECHDIR created!" + _ak_log_info "Folder $TECHDIR created!" else - logit "ERROR" "Problem occured while creating $TECHDIR" + _ak_log_error "Problem occured while creating $TECHDIR" echo "ERROR Can't create $TECHDIR" exit 1 fi else - logit "INFO" "Temp dir found" + _ak_log_info "Temp dir found" fi # FILEMAPSDIR @@ -67,14 +67,14 @@ then mkdir -p "$FILEMAPSDIR" if [ "$?" == 0 ] then - logit "INFO" "Folder $FILEMAPSDIR created!" + _ak_log_info "Folder $FILEMAPSDIR created!" else - logit "ERROR" "Problem occured while creating $FILEMAPSDIR" + _ak_log_error "Problem occured while creating $FILEMAPSDIR" echo "ERROR Can't create $FILEMAPSDIR" exit 1 fi else - logit "INFO" "Mapsdir found" + _ak_log_info "Mapsdir found" fi # CHKDIR @@ -83,14 +83,14 @@ then mkdir -p "$CHKDIR" if [ "$?" == 0 ] then - logit "INFO" "Folder $CHKDIR created!" + _ak_log_info "Folder $CHKDIR created!" else - logit "ERROR" "Problem occured while creating $CHKDIR" + _ak_log_error "Problem occured while creating $CHKDIR" echo "ERROR Can't create $CHKDIR" exit 1 fi else - logit "INFO" "Workdir found" + _ak_log_info "Workdir found" fi # Uncomment next line in case you want to debug the resulting script as well -- cgit v1.2.3