bundle-ebpf-co-re.sh 496 B

123456789
  1. #!/bin/sh
  2. SRCDIR="${1}"
  3. CORE_VERSION="$(cat "${SRCDIR}/packaging/ebpf-co-re.version")"
  4. CORE_TARBALL="netdata-ebpf-co-re-glibc-${CORE_VERSION}.tar.xz"
  5. curl -sSL --connect-timeout 10 --retry 3 "https://github.com/netdata/ebpf-co-re/releases/download/${CORE_VERSION}/${CORE_TARBALL}" > "${CORE_TARBALL}" || exit 1
  6. grep "${CORE_TARBALL}" "${SRCDIR}/packaging/ebpf-co-re.checksums" | sha256sum -c - || exit 1
  7. tar -xa --no-same-owner -f "${CORE_TARBALL}" -C "${SRCDIR}/src/libnetdata/ebpf" || exit 1