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>2016-05-03 14:16:11 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-05-03 14:16:11 +0300
commitc8c7a11e37dfb10dbbf21a952e0e706ee18c9162 (patch)
tree66929d2a982d4e5a6e73ad1287adb8a0e741a275 /include
parentbbdfce2b05774a76a309b19199521770a5f9cfdf (diff)
Implemented linter suggestions
Diffstat (limited to 'include')
-rw-r--r--include/helper_show44
1 files changed, 22 insertions, 22 deletions
diff --git a/include/helper_show b/include/helper_show
index 5a217931..6cda2103 100644
--- a/include/helper_show
+++ b/include/helper_show
@@ -78,24 +78,24 @@ if [ $# -gt 0 ]; then
else
shift
if [ $# -eq 1 ]; then
- case $1 in
- "audit") printf "${AUDIT_HELP}" ;;
- "show") echo "${SHOW_HELP}" ;;
- *) echo "Unknown argument for 'commands'"
- esac
- else
- shift
- case $1 in
- "dockerfile")
- echo "Usage: lynis audit dockerfile <file>"
- ;;
- "system")
- printf "${COMMANDS_AUDIT_SYSTEM_USAGE}\n${COMMANDS_AUDIT_SYSTEM_FUNCTION}\n"
- ;;
- *)
- echo "Unknown argument for 'commands'"
- ;;
- esac
+ case $1 in
+ "audit") echo "${AUDIT_HELP}" ;;
+ "show") echo "${SHOW_HELP}" ;;
+ *) echo "Unknown argument for 'commands'"
+ esac
+ else
+ shift
+ case $1 in
+ "dockerfile")
+ echo "Usage: lynis audit dockerfile <file>"
+ ;;
+ "system")
+ echo "${COMMANDS_AUDIT_SYSTEM_USAGE}\n${COMMANDS_AUDIT_SYSTEM_FUNCTION}\n"
+ ;;
+ *)
+ echo "Unknown argument for 'commands'"
+ ;;
+ esac
fi
fi
;;
@@ -132,8 +132,8 @@ if [ $# -gt 0 ]; then
shift
case $1 in
"skipped") echo "${SKIP_TESTS}" ;;
- *) printf "Invalid argument provided to lynis show tests\n\n"
- printf "Suggestions:\n"
+ *) echo "Invalid argument provided to lynis show tests\n\n"
+ echo "Suggestions:\n"
for I in ${SHOW_TESTS_ARGS}; do
echo "lynis show tests ${I}"
done
@@ -147,11 +147,11 @@ if [ $# -gt 0 ]; then
*) echo "Unknown option" ;;
esac
else
- printf "\n ${WHITE}Provide an additional argument${NORMAL}\n\n"
+ echo "\n ${WHITE}Provide an additional argument${NORMAL}\n\n"
for I in ${SHOW_ARGS}; do
echo " lynis show ${BROWN}${I}${NORMAL}"
done
- printf "\n"
+ echo "\n"
fi