You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2023/05/27 15:48:53 UTC
[linkis] branch dev-1.4.0-integration-test updated: fix install-linkis.sh: 27: [: X: unexpected operator
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev-1.4.0-integration-test
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/dev-1.4.0-integration-test by this push:
new 82463e1d1 fix install-linkis.sh: 27: [: X: unexpected operator
82463e1d1 is described below
commit 82463e1d1b2d3b059f03c7a1a777b513534406c8
Author: casionone <ca...@gmail.com>
AuthorDate: Sat May 27 23:48:30 2023 +0800
fix install-linkis.sh: 27: [: X: unexpected operator
---
linkis-dist/helm/scripts/install-ldh.sh | 4 ++--
linkis-dist/helm/scripts/install-linkis.sh | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/linkis-dist/helm/scripts/install-ldh.sh b/linkis-dist/helm/scripts/install-ldh.sh
index 7be4d3486..bb8292dfe 100755
--- a/linkis-dist/helm/scripts/install-ldh.sh
+++ b/linkis-dist/helm/scripts/install-ldh.sh
@@ -26,7 +26,7 @@ LDH_VERSION=${LDH_VERSION-${LINKIS_IMAGE_TAG}}
echo "# LDH version: ${LINKIS_IMAGE_TAG}"
# load image
-if [ "X${USING_KIND}" == "Xtrue" ]; then
+if [ "${USING_KIND}" == "true" ]; then
echo "# Loading LDH image ..."
kind load docker-image linkis-ldh:${LINKIS_IMAGE_TAG} --name ${KIND_CLUSTER_NAME}
fi
@@ -36,7 +36,7 @@ echo "# Deploying LDH ..."
set +e
x=`kubectl get ns ldh 2> /dev/null`
set -e
-if [ "X${x}" == "X" ]; then
+if [ "${x}" == "" ]; then
kubectl create ns ldh
fi
kubectl apply -n ldh -f ${RESOURCE_DIR}/ldh/configmaps
diff --git a/linkis-dist/helm/scripts/install-linkis.sh b/linkis-dist/helm/scripts/install-linkis.sh
index 2abf12a0d..e05d676b1 100755
--- a/linkis-dist/helm/scripts/install-linkis.sh
+++ b/linkis-dist/helm/scripts/install-linkis.sh
@@ -24,16 +24,16 @@ HELM_RELEASE_NAME=${2:-linkis-demo}
LOCAL_MODE=${3:-true}
USING_KIND=${4:-false}
-if [ "X${HELM_DEBUG}" == "Xtrue" ]; then
+if [ "${HELM_DEBUG}" == "true" ]; then
# template helm charts
helm template --namespace ${KUBE_NAMESPACE} -f ${LINKIS_CHART_DIR}/values.yaml ${HELM_RELEASE_NAME} ${LINKIS_CHART_DIR}
else
# create hadoop configs
- if [ "X${WITH_LDH}" == "Xtrue" ]; then
+ if [ "${WITH_LDH}" == "true" ]; then
kubectl apply -n ${KUBE_NAMESPACE} -f ${RESOURCE_DIR}/ldh/configmaps
fi
# load image
- if [ "X${USING_KIND}" == "Xtrue" ]; then
+ if [ "${USING_KIND}" == "true" ]; then
echo "# Loading Linkis image ..."
kind load docker-image linkis:${LINKIS_IMAGE_TAG} --name ${KIND_CLUSTER_NAME}
kind load docker-image linkis-web:${LINKIS_IMAGE_TAG} --name ${KIND_CLUSTER_NAME}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org