File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
resources/server/bin/helpers Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,7 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then
81
81
# Rather than trusting the output of ldd --version (which is not always accurate)
82
82
# we instead use the version of the cached libc.so.6 file itself.
83
83
libc_real_path=$( readlink -f " $libc_path " )
84
- if [ -x " $libc_real_path " ]; then
85
- # get version from executable
86
- libc_version=$( $libc_real_path --version | sed -n ' s/.*release version \([0-9]\+\.[0-9]\+\).*/\1/p' )
87
- else
88
- # .so is not executable on this host; try getting from strings
89
- libc_version=$( cat " $libc_real_path " | sed -n ' s/.*release version \([0-9]\+\.[0-9]\+\).*/\1/p' )
90
- fi
84
+ libc_version=$( cat " $libc_real_path " | sed -n ' s/.*release version \([0-9]\+\.[0-9]\+\).*/\1/p' )
91
85
if [ " $( printf ' %s\n' " 2.28" " $libc_version " | sort -V | head -n1) " = " 2.28" ]; then
92
86
found_required_glibc=1
93
87
else
You can’t perform that action at this time.
0 commit comments