replace which
centos:centos7 docker minimal image does not provide which (although centos:centos6 minimal image does)
This commit is contained in:
parent
31554e0d0e
commit
f7e72b4278
|
@ -5,7 +5,7 @@ mkdir build || exit 1
|
||||||
cd build || exit 1
|
cd build || exit 1
|
||||||
# some environments have cmake v2 as 'cmake' and v3 as 'cmake3'
|
# some environments have cmake v2 as 'cmake' and v3 as 'cmake3'
|
||||||
# check for cmake3 first then fallback to just cmake
|
# check for cmake3 first then fallback to just cmake
|
||||||
B_CMAKE=`which cmake3 2>/dev/null`
|
`type cmake3 >> /dev/null` && B_CMAKE=`type cmake3 | cut -d ' ' -f 3`
|
||||||
[ $? -ne 0 -o "x$B_CMAKE" = "x" ] && B_CMAKE=cmake
|
[ $? -ne 0 -o "x$B_CMAKE" = "x" ] && B_CMAKE=cmake
|
||||||
# default build configuration
|
# default build configuration
|
||||||
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}
|
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}
|
||||||
|
|
Loading…
Reference in New Issue