From 855fdcaed1e14fd736a8f16bb1a1a4a62e43fc20 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Mon, 20 Sep 2010 23:26:08 +0200 Subject: scripts: fix for POSIX compliance Using two '=' for string comparison is a bashism. Revert to using one, as stated in POSIX 1003.1-2008. Of the three affected scripts, two are explicitly called vi #!/bin/bash. Those two do not _need_ the fix, but gets it nonetheless, in case we later switch to a POSIX-compliant shell for those scripts. Signed-off-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- scripts/get_linux_config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/get_linux_config.sh') diff --git a/scripts/get_linux_config.sh b/scripts/get_linux_config.sh index 5cd0e371f2..6c00036855 100755 --- a/scripts/get_linux_config.sh +++ b/scripts/get_linux_config.sh @@ -23,7 +23,7 @@ LINUX_MINOR_VERSION=${LINUX26_DIR:13} function DBG_PRINT { - if [ ${DEBUG} == 1 ] ; then + if [ ${DEBUG} = 1 ] ; then echo $1 fi } @@ -50,8 +50,8 @@ for i in ${CONFIGS} ; do echo Copying `basename $i`.config ... cp $i.config ${LINUX26_CONFIG} elif [ ${THIS_MAJOR} -eq ${LINUX_MAJOR_VERSION} ] ; then - if [ "${LINUX_MINOR_VERSION}X" == "X" ] ; then - if [ "${THIS_MINOR}X" == "X" ] ; then + if [ "${LINUX_MINOR_VERSION}X" = "X" ] ; then + if [ "${THIS_MINOR}X" = "X" ] ; then echo Copying `basename $i`.config ... cp $i.config ${LINUX26_CONFIG} else -- cgit v1.2.3