mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
Correcting the code, was not exiting on error, only linux desktop should go through the test of C lib
fixing few error after test
This commit is contained in:
parent
c65d3d0314
commit
9cd43780dd
@ -68,14 +68,21 @@ get_os() {
|
|||||||
# Gets the C lib the system is using by setting the $c_lib variable.
|
# Gets the C lib the system is using by setting the $c_lib variable.
|
||||||
# Returns 0 in case of success, 1 otherwise.
|
# Returns 0 in case of success, 1 otherwise.
|
||||||
get_C_library(){
|
get_C_library(){
|
||||||
if ldd --version | grep -i glibc; then
|
if [ "$os" != 'linux' ] ; then
|
||||||
c_lib='glibc'
|
return 0
|
||||||
elif ldd --version | grep -i eglibc; then
|
fi
|
||||||
|
if ldd --version | grep -qi eglibc; then
|
||||||
c_lib='eglibc'
|
c_lib='eglibc'
|
||||||
elif ldd --version | grep -i musl; then
|
return 0
|
||||||
|
elif ldd --version | grep -qi glibc; then
|
||||||
|
c_lib='glibc'
|
||||||
|
return 0
|
||||||
|
elif ldd --version | grep -qi musl; then
|
||||||
c_library_failure_usage
|
c_library_failure_usage
|
||||||
elif ldd --version | grep -i bionic; then
|
return 1
|
||||||
|
elif ldd --version | grep -qi bionic; then
|
||||||
c_library_failure_usage
|
c_library_failure_usage
|
||||||
|
return 1
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -161,6 +168,7 @@ fill_release_variables() {
|
|||||||
# Fill $c_lib variable.
|
# Fill $c_lib variable.
|
||||||
if ! get_C_library; then
|
if ! get_C_library; then
|
||||||
c_library_failure_usage
|
c_library_failure_usage
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user