Skip to contentSkip to conversation

x86/kernel/cpu/mkcapflags.sh bash-ism

PATCH New Sylvain BERTRAND 2 participants 2 messages Dec 23, 2014 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---

arch/x86/kernel/cpu/mkcapflags.sh +1 -1
@@ -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)"
#1 lore raw

[tip:x86/urgent] x86: Fix mkcapflags.sh bash-ism

x86: Fix mkcapflags.sh bash-ism
Commit-ID:  ea174f4c4f6135e30a4e1e8c4511980338238b16
Gitweb:     http://git.kernel.org/tip/ea174f4c4f6135e30a4e1e8c4511980338238b16
Author:     Sylvain BERTRAND <[email protected]>
AuthorDate: Tue, 23 Dec 2014 13:39:12 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 23 Dec 2014 15:34:57 +0100

x86: Fix 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

---
 arch/x86/kernel/cpu/mkcapflags.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/mkcapflags.sh +1 -1
index e2b22df..36d99a3 100644
@@ -28,7 +28,7 @@ function dump_array()
 		# 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)"