We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b0b3c commit 23760a7Copy full SHA for 23760a7
scripts/perf/lib.sh
@@ -107,7 +107,7 @@ function build_test_suite() {
107
# Install and enable the repository that provides the LLVM Toolchain
108
if [[ -n "${COPR_PROJECT}" ]]; then
109
dnf copr enable -y ${COPR_OWNER}/${COPR_PROJECT} ${CHROOT}
110
- local repo_file=$(dnf repoinfo --json *${COPR_PROJECT}* | jq -r ".[0].repo_file_path")
+ local repo_file=$(dnf repoinfo '*${COPR_PROJECT}*' 2>/dev/null | grep -ioP 'Repo-filename\s*:\s*\K.*' | head -n1)
111
distname=$(rpm --eval "%{?fedora:fedora}%{?rhel:rhel}")
112
sed -i "s/\$distname/$distname/g" $repo_file
113
0 commit comments