Skip to content

Commit b24a1cc

Browse files
monotekunguiculus
authored andcommitted
Make lint usable without kind (#11)
Signed-off-by: André Bauer <andre.bauer@kiwigrid.com> * added brackets Signed-off-by: André Bauer <monotek23@gmail.com>
1 parent aaeed54 commit b24a1cc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ct.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ main() {
4242
return
4343
fi
4444

45-
configure_kube
46-
install_tiller
45+
if [[ "$command" == "lint" ]]; then
46+
helm_init
47+
else
48+
configure_kube
49+
install_tiller
50+
fi
51+
4752
run_ct
4853
}
4954

@@ -132,6 +137,11 @@ install_tiller() {
132137
echo
133138
}
134139

140+
helm_init() {
141+
docker_exec helm init --client-only
142+
echo
143+
}
144+
135145
run_ct() {
136146
echo "Running 'ct $command'..."
137147
docker_exec ct "$command"

0 commit comments

Comments
 (0)