Browse Source

MT#55283 fix kernel version generating booboo

Also make shellcheck happy.

Change-Id: Ic8a7bd67866ef2c75dec40dbe4207fc92ef31ed2
rfuchs/1943
Richard Fuchs 7 months ago
parent
commit
277bd13d97
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      kernel-module/gen-rtpengine-kmod-flags

+ 2
- 2
kernel-module/gen-rtpengine-kmod-flags View File

@ -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}"


Loading…
Cancel
Save