fix: tweak check-requirements for calling ldconfig (#202645)
* tweak check-requirements for calling ldconfig * apply patchpull/202775/head
parent
63349889d9
commit
216a8e66d3
|
@ -32,7 +32,7 @@ elif [ -f /usr/lib/libstdc++.so.6 ]; then
|
|||
libstdcpp_path='/usr/lib/libstdc++.so.6'
|
||||
elif [ -f /sbin/ldconfig ]; then
|
||||
# Look up path
|
||||
libstdcpp_paths=$(ldconfig -p | grep 'libstdc++.so.6')
|
||||
libstdcpp_paths=$(/sbin/ldconfig -p | grep 'libstdc++.so.6')
|
||||
|
||||
if [ "$(echo "$libstdcpp_paths" | wc -l)" -gt 1 ]; then
|
||||
libstdcpp_path=$(echo "$libstdcpp_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}')
|
||||
|
@ -66,7 +66,7 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then
|
|||
libc_path='/usr/lib/libc.so.6'
|
||||
elif [ -f /sbin/ldconfig ]; then
|
||||
# Look up path
|
||||
libc_paths=$(ldconfig -p | grep 'libc.so.6')
|
||||
libc_paths=$(/sbin/ldconfig -p | grep 'libc.so.6')
|
||||
|
||||
if [ "$(echo "$libc_paths" | wc -l)" -gt 1 ]; then
|
||||
libc_path=$(echo "$libc_paths" | grep "$LDCONFIG_ARCH" | awk '{print $NF}')
|
||||
|
|
Loading…
Reference in New Issue