From a51f918fc4032b27ba344295e59542f70c500418 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sun, 18 Jun 2017 22:47:40 +0100 Subject: [PATCH] Add lowercase path for changelog search (eg: Fedora/EPEL pkg) --- include/helper_show | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/helper_show b/include/helper_show index 3028992..9107d67 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 -- 2.9.3