Fix return of full_kernel_version_no_hyphen()

pull/57/merge
Jesus Alvarez 9 years ago
parent 5d66b39950
commit de75c35ee8
  1. 2
      build.sh
  2. 3
      lib.sh

@ -196,7 +196,7 @@ check_git_repo() {
update_def_pkgbuilds() {
# Calculate what the new pkgver would be for the git packages
# local fkv=$(full_kernel_version ${AZB_DEF_KERNEL_VERSION} ${AZB_DEF_KERNEL_PKGREL_X32} ${AZB_DEF_KERNEL_PKGREL_X64})
AZB_KERNEL_VERSION_FULL=${AZB_DEF_KERNEL_VERSION}
AZB_KERNEL_VERSION_FULL=$(full_kernel_version ${AZB_DEF_KERNEL_VERSION})
AZB_PKGVER=${AZB_ZOL_VERSION}_$(full_kernel_version_no_hyphen ${AZB_DEF_KERNEL_VERSION})
debug "AZB_PKGVER: ${AZB_PKGVER}"
debug "AZB_ZOL_VERSION: ${AZB_ZOL_VERSION}"

@ -287,8 +287,9 @@ full_kernel_version() {
}
# Returns the full kernel version. If $1 is "3.14-1" then full_kernel_version returns "3.14.0_1".
full_kernel_version_no_hyphen() {
# $1: The full kernel version
# returns: output is printed to stdout
echo $(echo ${1} | sed s/-/_/g)
echo $(full_kernel_version ${1} | sed s/-/_/g)
}

Loading…
Cancel
Save