mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Merge pull request #102046 from tnqn/shell-error
Fix exit code check in hack/grab-profiles.sh
This commit is contained in:
commit
02be0dd784
@ -67,8 +67,7 @@ profile_components=""
|
|||||||
output_dir="."
|
output_dir="."
|
||||||
tunnel_port="${tunnel_port:-1234}"
|
tunnel_port="${tunnel_port:-1234}"
|
||||||
|
|
||||||
args=$(getopt -o s:mho:k:c -l server:,master,heapster,output:,kubelet:,scheduler,controller-manager,help,inuse-space,inuse-objects,alloc-space,alloc-objects,cpu,kubelet-binary:,master-binary:,scheduler-binary:,controller-manager-binary:,scheduler-port:,controller-manager-port: -- "$@")
|
if ! args=$(getopt -o s:mho:k:c -l server:,master,heapster,output:,kubelet:,scheduler,controller-manager,help,inuse-space,inuse-objects,alloc-space,alloc-objects,cpu,kubelet-binary:,master-binary:,scheduler-binary:,controller-manager-binary:,scheduler-port:,controller-manager-port: -- "$@"); then
|
||||||
if [[ $? ]]; then
|
|
||||||
>&2 echo "Error in getopt"
|
>&2 echo "Error in getopt"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user