Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-09-17 15:04:30 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-09-17 15:04:30 +0300
commit98017c78cac83d3370861797a3d2f716e8948481 (patch)
treec3630b67146bed36ec6f1273b236030e4dafe1d9 /include/tests_ssh
parent95e9e808346a95e8810b94eaa589fa7cef814758 (diff)
Implemented several code style improvements
Diffstat (limited to 'include/tests_ssh')
-rw-r--r--include/tests_ssh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_ssh b/include/tests_ssh
index 7683b0a7..eb3b9134 100644
--- a/include/tests_ssh
+++ b/include/tests_ssh
@@ -104,7 +104,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
OPENSSHD_VERSION=$(${SSHDBINARY} -t -d 2>&1 | ${GREPBINARY} 'sshd version' | ${AWKBINARY} '{if($4~OpenSSH_){print $4}}' | ${AWKBINARY} -F_ '{print $2}' | ${TRBINARY} -d '[:cntrl:],')
LogText "Result: discovered OpenSSH version is ${OPENSSHD_VERSION}"
- if [ -n ${OPENSSHD_VERSION} ]; then
+ if [ -n "${OPENSSHD_VERSION}" ]; then
OPENSSHD_VERSION_MAJOR=$(echo ${OPENSSHD_VERSION%%p*} | ${AWKBINARY} -F. '{print $1}')
LogText "Result: OpenSSH major version: ${OPENSSHD_VERSION_MAJOR}"
OPENSSHD_VERSION_MINOR=$(echo ${OPENSSHD_VERSION%%p*} | ${AWKBINARY} -F. '{print $2}')