From: Francis Dupont Date: Mon, 11 Mar 2019 17:24:08 +0000 (+0100) Subject: [524-using-sh-and-wrong-syntax-in-if-statements-breaks-ubuntu-build] Changed == into = X-Git-Tag: Kea-1.6.0-beta~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08b801441e054aaf983441b271556945166990c5;p=thirdparty%2Fkea.git [524-using-sh-and-wrong-syntax-in-if-statements-breaks-ubuntu-build] Changed == into = --- diff --git a/tools/cql_config b/tools/cql_config index fbbd9739b0..fd45372493 100755 --- a/tools/cql_config +++ b/tools/cql_config @@ -35,7 +35,7 @@ then exit 1 fi -if [ "$1" == "--help" ] +if [ "$1" = "--help" ] then echo "cql_config 'option' ['library']" echo "options:" @@ -68,21 +68,21 @@ else cql_lib=$2 fi -if [ "$1" == "--cflags-only-other" ] +if [ "$1" = "--cflags-only-other" ] then exit 0 fi -if [ "$1" == "--cflags-only-I" ] +if [ "$1" = "--cflags-only-I" ] then echo "-I${CPP_DRIVER_PATH}/include/" exit 0 fi -if [ "$1" == "--libs" ] +if [ "$1" = "--libs" ] then echo "-L${CPP_DRIVER_PATH}/build/ -l${cql_lib} -luv" exit 0 fi -if [ "$1" == "--modversion" ] +if [ "$1" = "--modversion" ] then MAJOR=$(grep VERSION_MAJOR "${CPP_DRIVER_PATH}/include/cassandra.h" | cut -d " " -f 3) MINOR=$(grep VERSION_MINOR "${CPP_DRIVER_PATH}/include/cassandra.h" | cut -d " " -f 3) @@ -90,7 +90,7 @@ then echo "${MAJOR}.${MINOR}.${PATCH}" exit 0 fi -if [ "$1" == "--print-errors" ] +if [ "$1" = "--print-errors" ] then exit 0 fi diff --git a/tools/sysrepo_config b/tools/sysrepo_config index 4a41ace831..b4b1a1388f 100755 --- a/tools/sysrepo_config +++ b/tools/sysrepo_config @@ -38,7 +38,7 @@ then echo "run: \`$0 --help\` for more help1" exit 0 fi -if [ "$1" == "--help" ] +if [ "$1" = "--help" ] then echo "sysrepo_config 'option' ['library']" echo "options:" @@ -86,7 +86,7 @@ if [ "$1" = "--libs" ]; then exit 0 fi -if [ "$1" == "--modversion" ]; then +if [ "$1" = "--modversion" ]; then MAJOR="1" MINOR="0" PATCH="0" @@ -94,7 +94,7 @@ if [ "$1" == "--modversion" ]; then exit 0 fi -if [ "$1" == "--variable=SR_REPOSITORY_LOC" ]; then +if [ "$1" = "--variable=SR_REPOSITORY_LOC" ]; then echo "${SYSREPO_PATH}/build/repository" fi