diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-03 14:16:11 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-03 14:16:11 +0300 |
commit | c8c7a11e37dfb10dbbf21a952e0e706ee18c9162 (patch) | |
tree | 66929d2a982d4e5a6e73ad1287adb8a0e741a275 /include | |
parent | bbdfce2b05774a76a309b19199521770a5f9cfdf (diff) |
Implemented linter suggestions
Diffstat (limited to 'include')
-rw-r--r-- | include/helper_show | 44 |
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 |