Skip to content

Commit 649538e

Browse files
committed
Use negation of == in comparison for the overlay name
1 parent 93b9ec9 commit 649538e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: deploy/kubernetes/deploy-driver.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ while [ -n "${1-}" ]; do
4444
esac
4545
done
4646

47-
if [ "${DEPLOY_VERSION}" =~ '^(?!noauth).*' ]; then
47+
if [[ ! "${DEPLOY_VERSION}" == *noauth* ]]; then
4848
ensure_var GCE_PD_SA_DIR
4949
fi
5050

@@ -74,7 +74,7 @@ function check_service_account()
7474

7575
ensure_kustomize
7676

77-
if [ "$skip_sa_check" != true -a "${DEPLOY_VERSION}" =~ '^(?!noauth).*' ]; then
77+
if [[ "$skip_sa_check" != true ]] && [[ ! "${DEPLOY_VERSION}" == *noauth* ]]; then
7878
check_service_account
7979
fi
8080

@@ -83,7 +83,7 @@ then
8383
${KUBECTL} create namespace "${NAMESPACE}" -v="${VERBOSITY}"
8484
fi
8585

86-
if [ "${DEPLOY_VERSION}" =~ '^(?!noauth).*' ]; then
86+
if [[ ! "${DEPLOY_VERSION}" == *noauth* ]]; then
8787
if ! ${KUBECTL} get secret cloud-sa -v="${VERBOSITY}" -n "${NAMESPACE}";
8888
then
8989
${KUBECTL} create secret generic cloud-sa -v="${VERBOSITY}" --from-file="${GCE_PD_SA_DIR}/cloud-sa.json" -n "${NAMESPACE}"

0 commit comments

Comments
 (0)