We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a9c84 commit dfa6db7Copy full SHA for dfa6db7
contrib/istio/install.sh
@@ -1,10 +1,15 @@
1
#!/usr/bin/env bash
2
3
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
4
+
5
cluster=$1
-operator=istio-operator-$cluster.yaml
6
+operator="${SCRIPT_DIR}/istio-operator-${cluster}.yaml"
7
if ! [[ -f $operator ]]; then
- echo "no such file: $operator"
- exit 1
8
+ operator="${SCRIPT_DIR}/${cluster}"
9
+ if ! [[ -f $operator ]]; then
10
+ echo "no such file: $operator"
11
+ exit 1
12
+ fi
13
fi
14
15
istioctl install -f "${operator}"
0 commit comments