From 2264cbdd0627946a43ec2cc931354ba34efb93c8 Mon Sep 17 00:00:00 2001 From: obdev Date: Fri, 31 Mar 2023 09:14:39 +0000 Subject: [PATCH] fix: obd.sh -c --- tools/deploy/obd.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/deploy/obd.sh b/tools/deploy/obd.sh index 1f0f289a54..f3b1ef4788 100755 --- a/tools/deploy/obd.sh +++ b/tools/deploy/obd.sh @@ -560,7 +560,16 @@ function main() { case "$1" in -v ) VERBOSE_FLAG='-v'; set -x; shift ;; --with-local-obproxy) WITH_LOCAL_PROXY="1";SKIP_COPY="1"; shift ;; - -c | --config ) YAML_CONF="$2"; shift 2 ;; + -c | --config ) + if [[ $commond == "deploy" || $commond == "redeploy" || $commond == "mysqltest" ]] + then + YAML_CONF="$2" + shift 2 + else + extra_args="$extra_args $1" + shift + fi + ;; -n | --deploy-name ) DEPLOY_NAME="$2"; shift 2 ;; -p | --data-path ) DATA_PATH="$2"; shift 2 ;; -N ) NO_CONFIRM="1"; shift ;;