mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix: tweak check-requirements for calling ldconfig (#202645)
* tweak check-requirements for calling ldconfig * apply patch
This commit is contained in:
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 a new issue