Skip to content

Commit

Permalink
Make lint usable without kind (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: André Bauer <andre.bauer@kiwigrid.com>

* added brackets

Signed-off-by: André Bauer <monotek23@gmail.com>
  • Loading branch information
monotek authored and unguiculus committed Dec 14, 2019
1 parent aaeed54 commit b24a1cc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ main() {
return
fi

configure_kube
install_tiller
if [[ "$command" == "lint" ]]; then
helm_init
else
configure_kube
install_tiller
fi

run_ct
}

Expand Down Expand Up @@ -132,6 +137,11 @@ install_tiller() {
echo
}

helm_init() {
docker_exec helm init --client-only
echo
}

run_ct() {
echo "Running 'ct $command'..."
docker_exec ct "$command"
Expand Down

0 comments on commit b24a1cc

Please sign in to comment.