什么是双冒号::在
shell脚本中?像这块脚本:
原文链接:https://www.f2er.com/bash/384561.htmlfunction guess_built_binary_path { local hyperkube_path=$(kube::util::find-binary "hyperkube") if [[ -z "${hyperkube_path}" ]]; then return fi echo -n "$(dirname "${hyperkube_path}")" }
我在这里找到了它:
https://github.com/kubernetes/kubernetes/blob/master/hack/local-up-cluster.sh