[fix] Fixes for quiet flag in so-ssh-harden

This commit is contained in:
William Wernert
2020-11-20 11:18:40 -05:00
parent 1a11c24f03
commit 2e6be747d9

View File

@@ -2,7 +2,7 @@
. /usr/sbin/so-common
if [[ $1 =~ ^(q|--quiet) ]]; then
if [[ $1 =~ ^(-q|--quiet) ]]; then
quiet=true
fi
@@ -29,12 +29,13 @@ print_sshd_t() {
print_msg() {
local msg=$1
if ! [[ $quiet ]]; then
printf "%s\n" \
"----" \
"$msg" \
"----" \
""
fi
}
if ! [[ $quiet ]]; then print_sshd_t "ciphers" "Before"; fi