Areli Fuss | 471a2970 | 2018-02-01 13:09:07 +0200 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | curl_status=$(curl -w '%{http_code}\n' https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get -o get_helm.sh) | ||||
4 | |||||
5 | echo $curl_status | ||||
6 | |||||
7 | if [ ${curl_status} != 200 ]; then | ||||
8 | echo "[ERROR] Download get_helm failed - $curl_status" | ||||
9 | exit -1 | ||||
10 | fi | ||||
11 | |||||
12 | chmod 700 get_helm.sh | ||||
13 | |||||
14 | echo "[INFO] Running get helm" | ||||
15 | ./get_helm.sh --version v2.7.2 | ||||
16 | |||||
17 | if [ $? != 0 ]; then | ||||
18 | echo "[ERROR] failed to run get_helm" | ||||
19 | fi | ||||
20 |