-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck-installed-tools.sh
executable file
·104 lines (92 loc) · 2.41 KB
/
check-installed-tools.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
# setup file for bblwrap project found here:
# git clone https://github.com/scottbri/bblwrap
# check cli tools
echo -n "checking if yq is installed... "
which yq > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install YQ"
echo "OSX: brew install yq"
echo "Ubuntu: snap install yq"
else
echo "yes"
fi
echo -n "checking if jq is installed... "
which jq > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install JQ"
echo "OSX: brew install jq"
echo "Ubuntu: sudo apt-get install jq"
echo ""
else
echo "yes"
fi
echo -n "checking if azure-cli is installed... "
which az > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install AZ cli"
echo "OSX: brew update && brew install azure-cli"
echo "Ubuntu: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest"
echo ""
else
echo "yes"
fi
echo -n "checking if gcloud-cli is installed... "
which gcloud > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install gcloud cli"
echo "OSX: https://cloud.google.com/sdk/docs/quickstart-macos"
echo "Ubuntu: https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu"
echo ""
else
echo "yes"
fi
echo -n "checking if terraform is installed... "
which terraform > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install terraform"
echo "https://www.terraform.io/downloads.html"
echo ""
else
echo "yes"
fi
echo -n "checking if ruby is installed... "
which ruby > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install ruby"
else
echo "yes"
fi
echo -n "checking if bosh-cli is installed... "
which bosh > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install bosh cli"
echo "OSX: brew install cloudfoudry/tap/bosh-cli"
echo "Ubuntu: https://bosh.io/docs/cli-v2-install"
echo ""
else
echo "yes"
fi
echo -n "checking if bbl cli is installed... "
which bbl > /dev/null
if [ "$?" -ne "0" ]; then
echo "no."
echo "please install bbl cli"
echo "OSX: brew install cloudfoundry/tap/bbl"
echo "Ubuntu: https://github.com/cloudfoundry/bosh-bootloader/releases"
echo ""
else
echo "yes"
fi
echo "Install bosh build environment dependencies... "
echo "make sure you've installed the dependencies here"
echo "https://bosh.io/docs/cli-v2-install/#additional-dependencies"
echo ""
echo ""