Commit 08b80144 authored by Francis Dupont's avatar Francis Dupont Committed by Tomek Mrugalski
Browse files

[524-using-sh-and-wrong-syntax-in-if-statements-breaks-ubuntu-build] Changed == into =

parent 7fb8b5e1
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment