mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
build: Add spelling checks and check if curl is installed.
This commit is contained in:
@@ -21,6 +21,7 @@ _init() {
|
||||
|
||||
## Minimum required versions for build dependencies
|
||||
GIT_VERSION="1.0"
|
||||
CURL_VERSION="7.12.0"
|
||||
GPG_VERSION="1.3"
|
||||
GO_VERSION="1.5.1"
|
||||
OSX_VERSION="10.8"
|
||||
@@ -186,6 +187,11 @@ check_deps() {
|
||||
if [ $? -ge 2 ]; then
|
||||
MISSING="${MISSING} gpg"
|
||||
fi
|
||||
|
||||
check_version "$(env curl --version 2>/dev/null | sed -e 's/^.* \([0-9.\].*\).*$/\1/' -e 's/^\([0-9.\]*\).*/\1/g' | head -1)" "${CURL_VERSION}"
|
||||
if [ $? -ge 2 ]; then
|
||||
MISSING="${MISSING} curl"
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
|
||||
Reference in New Issue
Block a user