Skip to content

Commit 7fd2edc

Browse files
authored
fix: ensure requirements check works for libc development versions (microsoft#202660)
1 parent efc4fc2 commit 7fd2edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/server/bin/helpers/check-requirements-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then
8383
libc_real_path=$(readlink -f "$libc_path")
8484
if [ -x "$libc_real_path" ]; then
8585
# get version from executable
86-
libc_version=$($libc_real_path --version | sed -n 's/.*stable release version \([0-9]\+\.[0-9]\+\).*/\1/p')
86+
libc_version=$($libc_real_path --version | sed -n 's/.*release version \([0-9]\+\.[0-9]\+\).*/\1/p')
8787
else
8888
# .so is not executable on this host; try getting from strings
89-
libc_version=$(cat "$libc_real_path" | sed -n 's/.*stable release version \([0-9]\+\.[0-9]\+\).*/\1/p')
89+
libc_version=$(cat "$libc_real_path" | sed -n 's/.*release version \([0-9]\+\.[0-9]\+\).*/\1/p')
9090
fi
9191
if [ "$(printf '%s\n' "2.28" "$libc_version" | sort -V | head -n1)" = "2.28" ]; then
9292
found_required_glibc=1

0 commit comments

Comments
 (0)