mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 21:47:02 +01:00
Merge pull request #5 from jeremydenoun/fix-echo
Script output should be usefull with pipe or redirection
This commit is contained in:
commit
f9889434e4
@ -47,7 +47,7 @@ _logger() {
|
||||
shift
|
||||
test -z "$SCRIPT_NAME" && SCRIPT_NAME=$(basename $0)
|
||||
builtin echo "$*" | /usr/bin/logger -t "[CIS_Hardening] $SCRIPT_NAME" -p "user.info"
|
||||
test -t 1 && cecho $COLOR "$SCRIPT_NAME $*"
|
||||
cecho $COLOR "$SCRIPT_NAME $*"
|
||||
}
|
||||
|
||||
cecho () {
|
||||
|
Loading…
Reference in New Issue
Block a user