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_tooling
parent95e9e808346a95e8810b94eaa589fa7cef814758 (diff)
Implemented several code style improvements
Diffstat (limited to 'include/tests_tooling')
-rw-r--r--include/tests_tooling4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_tooling b/include/tests_tooling
index 15fa3540..328a48fa 100644
--- a/include/tests_tooling
+++ b/include/tests_tooling
@@ -54,7 +54,7 @@
# Ansible
FOUND=0
- LIST="~/.ansible ${ROOTDIR}etc/ansible ${ROOTDIR}root/.ansible ${ROOTDIR}tmp/.ansible"
+ LIST="${HOME}/.ansible ${ROOTDIR}etc/ansible ${ROOTDIR}root/.ansible ${ROOTDIR}tmp/.ansible"
for ITEM in ${LIST}; do if DirectoryExists ${ITEM}; then FOUND=1; break; fi; done
# Test for files (only if no match was found)
if [ ${FOUND} -eq 0 ]; then
@@ -359,7 +359,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
# Continue if tooling is available and snort is running
- if [ -n ${SNORT_FOUND} ] || [ -n ${SNORT_RUNNING} ]; then
+ if [ -n "${SNORT_FOUND}" ] || [ -n "${SNORT_RUNNING}" ]; then
if [ ${SNORT_FOUND} -eq 1 ] && [ ${SNORT_RUNNING} -eq 1 ]; then
SNORT_CONFIG=$(${PSBINARY} | ${AWKBINARY} -F-.. '/snort/ {print $3}' | ${HEADBINARY} -1)
if HasData "${SNORT_CONFIG}"; then