summaryrefslogtreecommitdiff
path: root/scripts/get_linux_config.sh
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>2010-09-20 23:26:08 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-09-30 22:08:58 +0200
commit855fdcaed1e14fd736a8f16bb1a1a4a62e43fc20 (patch)
tree30bf854b451b7aedc9fc19bc9ff747b8e6f98c71 /scripts/get_linux_config.sh
parent5c6320f1b550b3607cc4ed42a95811381d31395f (diff)
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" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'scripts/get_linux_config.sh')
-rwxr-xr-xscripts/get_linux_config.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/get_linux_config.sh b/scripts/get_linux_config.sh
index 5cd0e371f..6c0003685 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