]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[524-using-sh-and-wrong-syntax-in-if-statements-breaks-ubuntu-build] Changed == into =
authorFrancis Dupont <fdupont@isc.org>
Mon, 11 Mar 2019 17:24:08 +0000 (18:24 +0100)
committerTomek Mrugalski <tomek@isc.org>
Wed, 3 Apr 2019 18:52:03 +0000 (14:52 -0400)
tools/cql_config
tools/sysrepo_config

index fbbd9739b0aeb300d72f19338c82b5bc57bd060a..fd4537249383c6e72c3c02ae85ea4d36d47c5304 100755 (executable)
@@ -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
index 4a41ace831917339eb8e6b99f50506b4955cb494..b4b1a1388ff7d83e966243a0b60ed694137daad2 100755 (executable)
@@ -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