diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 19:26:24 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 19:26:24 +0200 |
commit | f8d2236e55e5c369b218017d1de1058d6a8ee361 (patch) | |
tree | 1cdd4ea1476c3062d3dd38ee1ba62d6bb98eb680 /bin/ak-sm-filesplitter | |
parent | 7affa2082f61455a413d0c8fea08e79935d4f308 (diff) | |
download | arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.gz arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.bz2 arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.zip |
Log formatting adjustment
Diffstat (limited to 'bin/ak-sm-filesplitter')
-rwxr-xr-x | bin/ak-sm-filesplitter | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/bin/ak-sm-filesplitter b/bin/ak-sm-filesplitter index 0d0ff30..d77b8ae 100755 --- a/bin/ak-sm-filesplitter +++ b/bin/ak-sm-filesplitter @@ -23,7 +23,7 @@ PROGRAM="$(basename $0)" if [ ! -f "$1" ] then - echo "[ERROR] File not found" + echo "ERROR File not found" exit 1 else FILE="$1" @@ -42,7 +42,7 @@ CURRENTDIR="$(pwd)/" # Our snippet for logging debug info logit(){ - ak-logthis "<$PROGRAM>" "$1" "$2" + ak-logthis "$PROGRAM" "$1" "$2" } # Checking directories and create them if necessary @@ -53,14 +53,14 @@ then mkdir -p "$TECHDIR" if [ "$?" == 0 ] then - logit "[INFO]" "Folder $TECHDIR created!" + logit "INFO" "Folder $TECHDIR created!" else - logit "[ERROR]" "Problem occured while creating $TECHDIR" - echo "[ERROR] Can't create $TECHDIR" + logit "ERROR" "Problem occured while creating $TECHDIR" + echo "ERROR Can't create $TECHDIR" exit 1 fi else - logit "[INFO]" "Temp dir found" + logit "INFO" "Temp dir found" fi # FILEMAPSDIR @@ -69,14 +69,14 @@ then mkdir -p "$FILEMAPSDIR" if [ "$?" == 0 ] then - logit "[INFO]" "Folder $FILEMAPSDIR created!" + logit "INFO" "Folder $FILEMAPSDIR created!" else - logit "[ERROR]" "Problem occured while creating $FILEMAPSDIR" - echo "[ERROR] Can't create $FILEMAPSDIR" + logit "ERROR" "Problem occured while creating $FILEMAPSDIR" + echo "ERROR Can't create $FILEMAPSDIR" exit 1 fi else - logit "[INFO]" "Mapsdir found" + logit "INFO" "Mapsdir found" fi # CHKDIR @@ -85,14 +85,14 @@ then mkdir -p "$CHKDIR" if [ "$?" == 0 ] then - logit "[INFO]" "Folder $CHKDIR created!" + logit "INFO" "Folder $CHKDIR created!" else - logit "[ERROR]" "Problem occured while creating $CHKDIR" - echo "[ERROR] Can't create $CHKDIR" + logit "ERROR" "Problem occured while creating $CHKDIR" + echo "ERROR Can't create $CHKDIR" exit 1 fi else - logit "[INFO]" "Workdir found" + logit "INFO" "Workdir found" fi # Uncomment next line in case you want to debug the resulting script as well |