diff --git a/BLFS/gen_config.sh b/BLFS/gen_config.sh index 621f88d..b182208 100755 --- a/BLFS/gen_config.sh +++ b/BLFS/gen_config.sh @@ -23,8 +23,10 @@ declare PKG_VER get_pkg_ver() { local this_script=$1 + [[ ${this_script:0:4} = "alsa" ]] && this_script=alsa + PKG_VER=$(xmllint --noent ./blfs-xml/book/bookinfo.xml 2>/dev/null | \ - grep -i " ${this_script#*-?-}-version " | cut -d "\"" -f2 ) + grep -i " ${this_script}-version " | cut -d "\"" -f2 ) }