From fbbb3834f15b2520f0765fbbf014fc6e8be41d54 Mon Sep 17 00:00:00 2001 From: Wang Jian <61138589+hzjane@users.noreply.github.com> Date: Wed, 7 Sep 2022 09:30:31 +0800 Subject: [PATCH] [PPML] Fix bash expected unary operator (#5653) --- .../scala/docker-occlum/run_spark_on_occlum_glibc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppml/trusted-big-data-ml/scala/docker-occlum/run_spark_on_occlum_glibc.sh b/ppml/trusted-big-data-ml/scala/docker-occlum/run_spark_on_occlum_glibc.sh index 759e9103089..b71f4d2c0dd 100644 --- a/ppml/trusted-big-data-ml/scala/docker-occlum/run_spark_on_occlum_glibc.sh +++ b/ppml/trusted-big-data-ml/scala/docker-occlum/run_spark_on_occlum_glibc.sh @@ -53,7 +53,7 @@ init_instance() { # enable tmp hostfs # --conf spark.executorEnv.USING_TMP_HOSTFS=true \ - if [ $USING_TMP_HOSTFS == "true" ]; then + if [[ $USING_TMP_HOSTFS == "true" ]]; then echo "use tmp hostfs" mkdir ./shuffle edit_json="$(cat Occlum.json | jq '.mount+=[{"target": "/tmp","type": "hostfs","source": "./shuffle"}]')" && \