Skip to contentSkip to conversation

kernel-yocto.bbclass: fix shell syntax error

PATCH In review Paul Eggleton 2 participants 2 messages Dec 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-yocto.bbclass: fix shell syntax error

Spaces aren't valid around = in an assignment statement (not even with bash).

---
 meta/classes/kernel-yocto.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-yocto.bbclass +1 -1
index e672a0e..c3e2494 100644
@@ -212,7 +212,7 @@ do_kernel_checkout() {
 	machine_branch="${@ get_machine_branch(d, "${KBRANCH}" )}"
 	git show-ref --quiet --verify -- "refs/heads/${machine_branch}"
 	if [ $? -eq 0 ]; then
-		machine_branch = "master"
+		machine_branch="master"
 	fi
 
 	# checkout and clobber any unimportant files
Signature · 1 line
1.9.3
#1 lore raw
Quoted 13 lines · Paul Eggleton

Spaces aren't valid around = in an assignment statement (not even with bash).

---
  meta/classes/kernel-yocto.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-yocto.bbclass +0 -0
index e672a0e..c3e2494 100644

meta/classes/kernel-yocto.bbclass do_kernel_checkout() { · line 215

Quoted 5 lines
meta/classes/kernel-yocto.bbclass +1 -1
@@ -212,7 +212,7 @@ do_kernel_checkout() {
  	machine_branch="${@ get_machine_branch(d, "${KBRANCH}" )}"
  	git show-ref --quiet --verify -- "refs/heads/${machine_branch}"
  	if [ $? -eq 0 ]; then
-		machine_branch = "master"
+		machine_branch="master"

Clearly not running very often :)

Looks good to me.

Bruce

Quoted 4 lines
meta/classes/kernel-yocto.bbclass +0 -0
  	fi
 
  	# checkout and clobber any unimportant files