Skip to content

Commit 171430c

Browse files
committed
fix:Demo install script reports error aeraki-mesh#224
Signed-off-by: Xunzhuo <[email protected]>
1 parent 9ed629f commit 171430c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

demo/install-demo.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
# Copyright Aeraki Authors
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -39,16 +41,16 @@ helm install \
3941
kubectl apply -f $BASEDIR/demo/gateway/demo-ingress.yaml -n istio-system
4042
kubectl apply -f $BASEDIR/demo/gateway/istio-ingressgateway.yaml -n istio-system
4143

42-
if [ ${DEMO} == "default" ]
44+
if [ "${DEMO}" == "default" ]
4345
then
4446
echo "install default demo"
4547
bash ${BASEDIR}/demo/metaprotocol-dubbo/install.sh
4648
bash ${BASEDIR}/demo/metaprotocol-thrift/install.sh
47-
elif [ ${DEMO} == "brpc" ]
49+
elif [ "${DEMO}" == "brpc" ]
4850
then
4951
echo "install brpc demo"
5052
bash ${BASEDIR}/demo/metaprotocol-brpc/install.sh
51-
elif [ ${DEMO} == "kafka" ]
53+
elif [ "${DEMO}" == "kafka" ]
5254
then
5355
echo "install kafka demo"
5456
bash ${BASEDIR}/demo/kafka/install.sh

demo/uninstall-demo.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ kubectl delete -f $BASEDIR/demo/gateway/demo-ingress.yaml -n istio-system
2323
kubectl delete -f $BASEDIR/demo/gateway/istio-ingressgateway.yaml -n istio-system
2424

2525

26-
if [ ${DEMO} == "default" ]
26+
if [ "${DEMO}" == "default" ]
2727
then
2828
bash ${BASEDIR}/demo/metaprotocol-dubbo/uninstall.sh
2929
bash ${BASEDIR}/demo/metaprotocol-thrift/uninstall.sh
30-
elif [ ${DEMO} == "brpc" ]
30+
elif [ "${DEMO}" == "brpc" ]
3131
then
3232
bash ${BASEDIR}/demo/metaprotocol-brpc/uninstall.sh
33-
elif [ ${DEMO} == "kafka" ]
33+
elif [ "${DEMO}" == "kafka" ]
3434
then
3535
bash ${BASEDIR}/demo/kafka/uninstall.sh
3636
fi

0 commit comments

Comments
 (0)