*.sh: cleanup all white noise
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
This commit is contained in:
@@ -213,7 +213,7 @@ kube::util::find-binary-for-platform() {
|
||||
locations+=("$location");
|
||||
done < <(find "${KUBE_ROOT}/bazel-bin/" -type f -perm -111 \
|
||||
\( -path "*/${platform/\//_}*/${lookfor}" -o -path "*/${lookfor}" \) 2>/dev/null || true)
|
||||
|
||||
|
||||
# List most recently-updated location.
|
||||
local -r bin=$( (ls -t "${locations[@]}" 2>/dev/null || true) | head -1 )
|
||||
echo -n "${bin}"
|
||||
|
Reference in New Issue
Block a user