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:
authorAthmane Madjoudj <athmanem@gmail.com>2017-06-21 15:08:57 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-06-21 15:08:57 +0300
commitac2c83870bdefd98ed4c54d53eaa0cb35c6dbfb9 (patch)
tree99425be0bbcd9dea32e806dfd94b0da50eae726e /include/helper_show
parent55f4448b346262f762a774388a3ac89e96f9e41b (diff)
Add lowercase path for changelog search (eg: Fedora/EPEL pkg) (#408)
Diffstat (limited to 'include/helper_show')
-rw-r--r--include/helper_show3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/helper_show b/include/helper_show
index 30289924..9107d67e 100644
--- a/include/helper_show
+++ b/include/helper_show
@@ -129,7 +129,8 @@ if [ $# -gt 0 ]; then
if [ $# -gt 1 ]; then
shift; SEARCH_VERSION="$1"
fi
- CHANGELOG_PATHS="/usr/share/doc/${PROGRAM_NAME} /usr/share/doc/${PROGRAM_NAME}-${PROGRAM_VERSION} ."
+ PROGRAM_NAME_LOWER=$( echo ${PROGRAM_NAME} | tr '[:upper:]' '[:lower:]')
+ CHANGELOG_PATHS="/usr/share/doc/${PROGRAM_NAME} /usr/share/doc/${PROGRAM_NAME}-${PROGRAM_VERSION} /usr/share/doc/${PROGRAM_NAME_LOWER} ."
CHANGELOG=""
if [ -z "${SEARCH_VERSION}" ]; then SEARCH_VERSION="${PROGRAM_VERSION}"; fi
STARTED=0