Commit 14775c40 authored by SataQiu's avatar SataQiu

fix shellcheck failures of hack/grab-profiles.sh

parent 3b12266c
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
./cluster/validate-cluster.sh ./cluster/validate-cluster.sh
./hack/cherry_pick_pull.sh ./hack/cherry_pick_pull.sh
./hack/ginkgo-e2e.sh ./hack/ginkgo-e2e.sh
./hack/grab-profiles.sh
./hack/lib/init.sh ./hack/lib/init.sh
./hack/lib/swagger.sh ./hack/lib/swagger.sh
./hack/lib/test.sh ./hack/lib/test.sh
......
...@@ -47,7 +47,7 @@ function grab_profiles_from_component { ...@@ -47,7 +47,7 @@ function grab_profiles_from_component {
done done
} }
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${KUBE_ROOT}/hack/lib/init.sh" source "${KUBE_ROOT}/hack/lib/init.sh"
server_addr="" server_addr=""
...@@ -65,7 +65,7 @@ output_dir="." ...@@ -65,7 +65,7 @@ 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: -- "$@") 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 [[ $? -ne 0 ]]; then if [[ $? ]]; then
>&2 echo "Error in getopt" >&2 echo "Error in getopt"
exit 1 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment