diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 15:59:07 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-30 15:59:07 +0300 |
commit | 9531bcdffff4e44e8aadb000f0b577d59a32ea3f (patch) | |
tree | a90160e19d3ec60b68104b64d006cfd2d88ab7a0 /bin/ak-log-message | |
parent | 251dc634fa625e9afb60cb83b5bc5d9201007e50 (diff) | |
download | arching-kaos-tools-9531bcdffff4e44e8aadb000f0b577d59a32ea3f.tar.gz arching-kaos-tools-9531bcdffff4e44e8aadb000f0b577d59a32ea3f.tar.bz2 arching-kaos-tools-9531bcdffff4e44e8aadb000f0b577d59a32ea3f.zip |
removed ak-log-message in favor of ak-log
Diffstat (limited to 'bin/ak-log-message')
-rwxr-xr-x | bin/ak-log-message | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/bin/ak-log-message b/bin/ak-log-message deleted file mode 100755 index b225313..0000000 --- a/bin/ak-log-message +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -PROGRAM="$(basename $0)" -TS="$(date -u +%s)" -if [ ! -z $1 ] && [ -n "$1" ] -then - if [ "$1" == "-h" ] || [ "$1" == "--help" ] - then - echo "$PROGRAM - Log events" - echo "-h, --help Prints this message" - echo "<program> <type> <message> Logs this message" - exit 0 - fi - if [ ! -z "$2" ] && [ -n "$2" ] - then - if [ ! -z "$3" ] && [ -n "$3" ] - then - echo "$TS" "<$1>" "[$2]" "$3" >> $AK_LOGSFILE - if [ "$AK_DEBUG" == "yes" ] - then - echo "$TS" "<$1>" "[$2]" "$3" >&2 - fi - exit 0 - else - echo "$TS" "<$1>" "[ERROR]" "No message" >> $AK_LOGSFILE - if [ "$AK_DEBUG" == "yes" ] - then - echo "$TS" "<$1>" "[ERROR]" "No message" >&2 - fi - exit 1 - fi - else - echo "$TS" "<$1>" "[ERROR]" "No type and message" >> $AK_LOGSFILE - if [ "$AK_DEBUG" == "yes" ] - then - echo "$TS" "<$1>" "[ERROR]" "No type and message" >&2 - fi - exit 1 - fi -else - echo "$TS" "<$(basename $0)>" "[ERROR]" "No arguments given" >> $AK_LOGSFILE - if [ "$AK_DEBUG" == "yes" ] - then - echo "$TS" "<$(basename $0)>" "[ERROR]" "No arguments given" >&2 - fi - exit 1 -fi - |