Merge pull request #259 from hodgesds/libbpf_fetch-path-fixes

Fix issue when CDPATH contains libbpf directory
This commit is contained in:
Tejun Heo 2024-05-01 04:30:04 -10:00 committed by GitHub
commit dd0f2b32dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
#!/bin/bash
unset CDPATH
cd $1
rm -rf libbpf
git clone --depth=1 https://github.com/libbpf/libbpf
@ -10,4 +11,4 @@ git checkout $2
# This is needed because we haven't built libbpf yet
# and this is where the headers will end up
mkdir src/usr
mkdir src/usr/include
mkdir src/usr/include