mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-09 05:06:38 +10:00
Make the error when a tool not found more obvious
Also ensure kind is installed before logs are exported Signed-off-by: irbekrm <irbekrm@gmail.com>
This commit is contained in:
@@ -26,6 +26,9 @@ SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
|
||||
export REPO_ROOT="${SCRIPT_ROOT}/.."
|
||||
source "${SCRIPT_ROOT}/lib/lib.sh"
|
||||
|
||||
# Configure PATH to use bazel provided e2e tools
|
||||
setup_tools
|
||||
|
||||
# Ensure a running Kubernetes cluster
|
||||
"${SCRIPT_ROOT}/ci-cluster.sh"
|
||||
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ setup_tools() {
|
||||
check_tool() {
|
||||
tool="$1"
|
||||
if ! command -v "$tool" &>/dev/null; then
|
||||
echo "Install $tool or run: export PATH=\"$REPO_ROOT/devel/bin:\$PATH\"" >&2
|
||||
echo "Fatal error: $tool not found. Install $tool or run: export PATH=\"$REPO_ROOT/devel/bin:\$PATH\"" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user