*.sh: cleanup all white noise

Signed-off-by: Xiang Dai <long0dai@foxmail.com>
This commit is contained in:
Xiang Dai
2020-05-29 09:56:00 +08:00
parent 0891f69f5e
commit e09bc312cb
15 changed files with 20 additions and 20 deletions

View File

@@ -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}"