mobile: use single brackets for bash if check

Double brackets are sh specific.
This commit is contained in:
Johan T. Halseth 2020-07-16 12:59:07 +02:00
parent d41ca81aad
commit 39241dcdc7
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -45,7 +45,7 @@ protoc -I/usr/local/include -I. \
# If prefix=1 is specified, prefix the generated methods with subserver name. # If prefix=1 is specified, prefix the generated methods with subserver name.
# This must be enabled to support subservers with name conflicts. # This must be enabled to support subservers with name conflicts.
use_prefix="0" use_prefix="0"
if [[ $prefix = "1" ]] if [ "$prefix" = "1" ]
then then
echo "Prefixing methods with subserver name" echo "Prefixing methods with subserver name"
use_prefix="1" use_prefix="1"