Some versions of the Linux kernel have double quotes, for example
linux-3.1 is named:
"Divemaster Edition"
while linux-3.2 is named:
Saber-toothed Squirrel
Just remove doubles quotes.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
k_dir="${1}"
if [ -n "${k_dir}" -a -d "${k_dir}/kernel" ]; then
# Get the version
- eval $( head -n 5 "${k_dir}/Makefile" \
- |sed -r -e 's/^/K_/; s/ = ?/="/; s/$/"/;' \
+ eval $( head -n 5 "${k_dir}/Makefile" \
+ |sed -r -e 's/^/K_/; s/"//g; s/ = ?/="/; s/$/"/;' \
)
printf "Found Linux kernel %d.%d.%d%s '%s'\n" \
"${K_VERSION}" "${K_PATCHLEVEL}" "${K_SUBLEVEL}" \