summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-02-06 15:43:35 +0100
committerLinus Nordberg <linus@nordu.net>2017-02-06 15:59:59 +0100
commit88dd3ec322aae5776a11e5112837f199ac83a374 (patch)
treeb8fb16127935d41d24a203aa8c705de3a46f51cb /tools
parent8c1e3ac28cbb902b540f776886a6556c40d3f601 (diff)
Some shells (like dash when invoked as /bin/sh) don't like '==' to test.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/getconfig.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/getconfig.sh b/tools/getconfig.sh
index f73cf1b..aaab7ee 100755
--- a/tools/getconfig.sh
+++ b/tools/getconfig.sh
@@ -15,7 +15,7 @@ plopcontrolport=$(cat ${plopcontrolfile})
configversion=$(echo "configversion" | nc 127.0.0.1 ${plopcontrolport})
echo "version before reload: $configversion"
getconfigresult=$(${BINDIR}/getconfig.py --localconfig ${localconfig} --dest ${globalconfig})
-if [ "$getconfigresult" == "newconfig" ]; then
+if [ "$getconfigresult" = "newconfig" ]; then
${BINDIR}/compileconfig.py --localconfig ${localconfig} --config ${globalconfig}
reloadresult=$(echo "reload" | nc 127.0.0.1 ${plopcontrolport})
echo $reloadresult