From 9e0bb874d60a54f5f4e9e8a28e4ea6b4e4b4ea6a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 28 May 2025 08:29:39 -0400 Subject: [PATCH] MT#55283 fix kernel version generating booboo Also make shellcheck happy. Change-Id: Ic8a7bd67866ef2c75dec40dbe4207fc92ef31ed2 (cherry picked from commit 277bd13d974bab5f0419d4c425f149e0cd4e0071) (cherry picked from commit 482dca3233f4a5279860bb83aa46ff772c1e5042) --- kernel-module/gen-rtpengine-kmod-flags | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel-module/gen-rtpengine-kmod-flags b/kernel-module/gen-rtpengine-kmod-flags index dda476e1b..0dee170f1 100755 --- a/kernel-module/gen-rtpengine-kmod-flags +++ b/kernel-module/gen-rtpengine-kmod-flags @@ -15,9 +15,9 @@ if [ -z "${RTPENGINE_VERSION}" ]; then deb_changelog="${M}/debian/changelog" fi if [ "${have_dpkg_parsechangelog}" = yes ]; then - deb_version="$(dpkg-parsechangelog -l${deb_changelog} | awk '/^Version: / {print $$2}')" + deb_version="$(dpkg-parsechangelog -l"${deb_changelog}" | awk '/^Version: / {print $2}')" fi - git_br_commit="git-$(cd ${M} && git rev-parse --abbrev-ref --symbolic-full-name HEAD 2> /dev/null)-$(cd ${M} && git rev-parse --short HEAD 2> /dev/null)" + git_br_commit="git-$(cd "${M}" && git rev-parse --abbrev-ref --symbolic-full-name HEAD 2> /dev/null)-$(cd "${M}" && git rev-parse --short HEAD 2> /dev/null)" if [ "${have_dpkg_parsechangelog}" = yes ]; then RTPENGINE_VERSION+=" ${deb_version}"