aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-sm-filesplitter
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-sm-filesplitter
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-sm-filesplitter')
-rwxr-xr-xbin/ak-sm-filesplitter18
1 files changed, 9 insertions, 9 deletions
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