Skip to content

Commit

Permalink
ci: Fix distro detection
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Bretelle <chantr4@gmail.com>
  • Loading branch information
chantra committed Aug 21, 2024
1 parent 8f323a0 commit c381e2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ kernel_build_make_jobs() {
echo $(( smp > MAX_MAKE_JOBS ? MAX_MAKE_JOBS : smp ))
}

distro_codename() {
DISTRO_CODENAME="noble"
distrib_codename() {
DISTRIB_CODENAME="noble"
test -f /etc/lsb-release && . /etc/lsb-release
echo "${DISTRO_CODENAME}"
echo "${DISTRIB_CODENAME}"
}

# Convert a platform (as returned by uname -m) to the kernel
Expand Down
4 changes: 2 additions & 2 deletions setup-build-env/install_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ else
REPO_DISTRO_SUFFIX="-${LLVM_VERSION}"
fi

DISTRO_CODENAME=$(distro_codename)
DISTRIB_CODENAME=$(distrib_codename)

echo "deb https://apt.llvm.org/${DISTRO_CODENAME}/ llvm-toolchain-${DISTRO_CODENAME}${REPO_DISTRO_SUFFIX} main" | sudo tee /etc/apt/sources.list.d/llvm.list
echo "deb https://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}${REPO_DISTRO_SUFFIX} main" | sudo tee /etc/apt/sources.list.d/llvm.list
n=0
while [ $n -lt 5 ]; do
set +e && \
Expand Down

0 comments on commit c381e2e

Please sign in to comment.