debian-cis/lib/common.sh

8 lines
201 B
Bash
Raw Normal View History

# CIS Debian 7 Hardening common functions
logger() {
test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0)
/usr/bin/logger -i -t "$SCRIPT_NAME" -p "user.info" "$*"
test -t 1 && echo "$*"
}