Skip to content

Commit 60da15e

Browse files
authored
Merge pull request #8 from jfoy/patch-1
Improve plugin semantics
2 parents 8161391 + cdf2bba commit 60da15e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bash/kubectl-sudo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ do
2727
done
2828

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

0 commit comments

Comments
 (0)