mirror of
https://github.com/minio/minio.git
synced 2025-02-05 02:38:07 -05:00
Check if the installed golang version is greater than 1.4.0
This commit is contained in:
parent
2ef1df016b
commit
262d8cc23a
@ -33,6 +33,11 @@ echo -n "Checking dependencies for Minio.. "
|
|||||||
## Check all dependencies are present
|
## Check all dependencies are present
|
||||||
MISSING=""
|
MISSING=""
|
||||||
|
|
||||||
|
check_version "$(env go version | sed 's/^.* go\([0-9.]*\).*$/\1/')" "1.4.0"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
MISSING="${MISSING} golang(1.4.0)"
|
||||||
|
fi
|
||||||
|
|
||||||
env git --version > /dev/null 2>&1
|
env git --version > /dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
MISSING="${MISSING} git"
|
MISSING="${MISSING} git"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user