Skip to content

Commit

Permalink
fix kubectl-watch
Browse files Browse the repository at this point in the history
  • Loading branch information
imuxin committed Sep 8, 2022
1 parent 7286c42 commit 6184d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/kubectl-watch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function cmd_exists() {
}


function main() {
function kubectl_watch() {
if ! cmd_exists $CMD
then
echo "not found: docker, please install docker."
Expand All @@ -25,5 +25,5 @@ function main() {
$CMD run -ti --init --rm -v $KUBECONF:$MOUNTKUBECONF $IMG $@
}

main
kubectl_watch $@

0 comments on commit 6184d05

Please sign in to comment.