mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Fix case when there are more than one matching libraries (#8955)
Small fix to the script for the scenario where more than one matching library can be returned. For example, the command `/sbin/ldconfig -p | grep libstdc++ | awk '{ print $NF }'` can result in ``` /lib/x86_64-linux-gnu/libstdc++.so.6 /lib32/libstdc++.so.6 ``` which then fails the check `if [[ ! -L "$link_path" ]]`
This commit is contained in:
parent
24987878e4
commit
4217f78368
@ -12,7 +12,7 @@ function glibc_version {
|
||||
}
|
||||
|
||||
function glibcpp_version {
|
||||
link_path=$(/sbin/ldconfig -p | grep libstdc++ | awk '{ print $NF }')
|
||||
link_path=$(/sbin/ldconfig -p | grep libstdc++ | awk '{ print $NF }' | head -1)
|
||||
if [[ ! -L "$link_path" ]]
|
||||
then
|
||||
echo "0"
|
||||
|
Loading…
Reference in New Issue
Block a user