Skip to content

Commit

Permalink
Merge pull request #8 from jfoy/patch-1
Browse files Browse the repository at this point in the history
Improve plugin semantics
  • Loading branch information
djboris9 authored May 10, 2021
2 parents 8161391 + cdf2bba commit 60da15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bash/kubectl-sudo
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ do
done

if [ -z "${PLUGIN_NAME}" ]; then
kubectl --as=${USER} --as-group=system:masters "$@"
exec kubectl --as=${USER} --as-group=system:masters "$@"
else
kubectl ${PLUGIN_NAME} --as=${USER} --as-group=system:masters ${NEW_ARGS}
exec kubectl ${PLUGIN_NAME} --as=${USER} --as-group=system:masters ${NEW_ARGS}
fi

0 comments on commit 60da15e

Please sign in to comment.