From: Julien Boibessot Date: Tue, 9 Feb 2010 16:11:04 +0000 (+0100) Subject: get_linux_config.sh: sets THIS_MINOR to 0 if not valid. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb1c82ad881ce01f9d7c26f646af402638696a69;p=buildroot.git get_linux_config.sh: sets THIS_MINOR to 0 if not valid. Sets THIS_MINOR to 0 if not valid, ie when processing a Linux config file which does not have a minor number extension; ex: "-linux-2.6..config" Otherwise bash is raising an error/exception (line 59) and script can not complete. Signed-off-by: Julien Boibessot Signed-off-by: Peter Korsgaard --- diff --git a/scripts/get_linux_config.sh b/scripts/get_linux_config.sh index 1950e9d2e2..5cd0e371f2 100755 --- a/scripts/get_linux_config.sh +++ b/scripts/get_linux_config.sh @@ -35,6 +35,7 @@ function linux_version() KERNEL=`echo ${KCONFIG} | sed s/.*linux-2.6./linux-2.6./g -` THIS_MAJOR=${KERNEL:10:2} THIS_MINOR=${KERNEL:13} + THIS_MINOR=${THIS_MINOR:=0} } # Try to be careful...