Skip to content

Commit

Permalink
log output to system log
Browse files Browse the repository at this point in the history
  • Loading branch information
hinmanjp committed Nov 5, 2024
1 parent b7919d6 commit 6a49cb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions getssl
Original file line number Diff line number Diff line change
Expand Up @@ -2963,6 +2963,11 @@ fi
# Main logic
############

# log results to system log - if the logger utility is in the path
if [ $(which logger) ] ; then
exec 1> >(logger -s -t $(basename $0)) 2>&1
fi

# Get the current OS, so the correct functions can be used for that OS. (sets the variable os)
get_os

Expand Down

0 comments on commit 6a49cb9

Please sign in to comment.