Corrected script names, added License, Completed README and corrected bug with too long logger messages

This commit is contained in:
thibault.dewailly
2016-04-19 09:31:01 +02:00
parent 11ed345a60
commit b2d3ed937e
8 changed files with 41 additions and 8 deletions

View File

@ -46,14 +46,14 @@ _logger() {
COLOR=$1
shift
test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0)
/usr/bin/logger -t "[CIS_Hardening] $SCRIPT_NAME" -p "user.info" "$*"
builtin echo "$*" | /usr/bin/logger -t "[CIS_Hardening] $SCRIPT_NAME" -p "user.info"
test -t 1 && cecho $COLOR "$SCRIPT_NAME $*"
}
cecho () {
COLOR=$1
shift
echo -e "${COLOR}$*${NC}"
builtin echo -e "${COLOR}$*${NC}"
}
crit () {