Messages in this thread Patch in this message | | | Date | Tue, 23 Dec 2014 13:39:12 +0100 | From | Sylvain BERTRAND <> | Subject | [PATCH] x86/kernel/cpu/mkcapflags.sh bash-ism |
| |
Chocked while compiling linux with dash shell instead of bash shell. See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sylvain BERTRAND <sylvain.bertrand@gmail.com> --- --- a/arch/x86/kernel/cpu/mkcapflags.sh +++ b/arch/x86/kernel/cpu/mkcapflags.sh @@ -28,7 +28,7 @@ # If the /* comment */ starts with a quote string, grab that. VALUE="$(echo "$i" | sed -n 's@.*/\* *\("[^"]*"\).*\*/@\1@p')" [ -z "$VALUE" ] && VALUE="\"$NAME\"" - [ "$VALUE" == '""' ] && continue + [ "$VALUE" = '""' ] && continue # Name is uppercase, VALUE is all lowercase VALUE="$(echo "$VALUE" | tr A-Z a-z)"
| |