We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b4f71 commit 1425a93Copy full SHA for 1425a93
kubectl-exec-as
@@ -5,7 +5,7 @@ set -eu
5
usage() {
6
cat <<EOF
7
8
-Usage: kubectl ezec-as [OPTIONS] <pod name> [-- <commands...>]
+Usage: kubectl exec-as [OPTIONS] <pod name> [-- <commands...>]
9
10
Run a command in a running container
11
@@ -37,7 +37,7 @@ USERNAME="root"
37
CONTAINER="NONE"
38
NAMESPACE="NONE"
39
40
-while getopts "dh:p:n:u:c" arg; do
+while getopts "hdp:n:u:c:" arg; do
41
case $arg in
42
p) # Specify pod name.
43
POD=${OPTARG}
@@ -66,7 +66,7 @@ done
66
67
shift $((OPTIND-1))
68
if [[ -z ${1+x} ]]; then
69
- echo "Error: You must specify the pod name" >&2
+ echo "Error: You have to specify the pod name" >&2
70
usage
71
fi
72
POD="$1"
0 commit comments