Patchwork [08/18] lsbtest: de-bash script to remove bash dependency

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date Nov. 29, 2013, 12:48 p.m.
Message ID <9a6dd06876eb44f3ce758f4fe95b5d39f79ec7a0.1385728901.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/62583/
State New
Headers show

Comments

Qi.Chen@windriver.com - Nov. 29, 2013, 12:48 p.m.
From: Chen Qi <Qi.Chen@windriver.com>

De-bash scripts in lsbtest to make it not dependent on bash.

[YOCTO #5555]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-extended/lsb/lsbtest/LSB_Test.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
index af1d61c..3901199 100644
--- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
+++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh
@@ -1,4 +1,4 @@ 
-#!/bin/bash
+#!/bin/sh
 
 # Copyright (C) 2012 Wind River Systems, Inc.
 #
@@ -272,7 +272,7 @@  then
 fi
 
 if ! `grep -F -q "noarch-suse" ${PLATFORM_FILE}`; then
-	if [ ${ARCH} == i686 ];then
+	if [ ${ARCH} = i686 ];then
 		echo "i486-suse" >> ${PLATFORM_FILE}
 		echo "i486-noarch" >> ${PLATFORM_FILE}
 		echo "i486-pc" >> ${PLATFORM_FILE}