mirror of
https://github.com/pgsty/minio.git
synced 2026-10-18 07:26:10 +03:00
fix(buildscripts): fail rebrand verification when ripgrep is missing
Check the existing ripgrep prerequisite before searches whose conditional status handling would otherwise hide command-not-found failures. Preserve untracked-file coverage and verification from a source archive without Git. Addresses the missing-tool finding recorded in commit 4fb3a7fa3b175727db987f3ba2523c84f74d4168 without its scan-scope changes. Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
@@ -11,6 +11,8 @@ fail() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
command -v rg >/dev/null 2>&1 || fail "ripgrep (rg) is required for rebrand verification"
|
||||
|
||||
require_file() {
|
||||
[ -f "$1" ] || fail "missing required file: $1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user