Commit fb1c82ad authored by Julien Boibessot's avatar Julien Boibessot Committed by Peter Korsgaard
Browse files

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: "<name>-linux-2.6.<major>.config"
Otherwise bash is raising an error/exception (line 59) and script can not
complete.

Signed-off-by: default avatarJulien Boibessot <julien.boibessot@armadeus.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent e777294f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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...