From 39241dcdc7da3d8e700f1cb3ff822d9da5f24841 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 16 Jul 2020 12:59:07 +0200 Subject: [PATCH] mobile: use single brackets for bash if check Double brackets are sh specific. --- mobile/gen_bindings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/gen_bindings.sh b/mobile/gen_bindings.sh index 705646b2..14cb7665 100755 --- a/mobile/gen_bindings.sh +++ b/mobile/gen_bindings.sh @@ -45,7 +45,7 @@ protoc -I/usr/local/include -I. \ # If prefix=1 is specified, prefix the generated methods with subserver name. # This must be enabled to support subservers with name conflicts. use_prefix="0" -if [[ $prefix = "1" ]] +if [ "$prefix" = "1" ] then echo "Prefixing methods with subserver name" use_prefix="1"