From ca41c1c6144fe9f13cfa81447eae1f0cd1333f43 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Tue, 20 Aug 2024 15:27:27 +1000 Subject: [PATCH 1/2] Install `dnf copr` plugin if not present (i.e. docker containers). --- util/install/fedora.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/util/install/fedora.sh b/util/install/fedora.sh index 0b93326bbfca..9e92dc8ca898 100755 --- a/util/install/fedora.sh +++ b/util/install/fedora.sh @@ -5,6 +5,7 @@ _qmk_install() { . /etc/os-release if [ "$VERSION_ID" -ge "39" ]; then + sudo dnf $SKIP_PROMPT copr -h >/dev/null 2>&1 || sudo dnf $SKIP_PROMPT install dnf-plugins-core sudo dnf $SKIP_PROMPT copr enable erovia/dfu-programmer fi From 2fa872519605501dc512c62a2066a81e59714f71 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Tue, 20 Aug 2024 15:30:04 +1000 Subject: [PATCH 2/2] Don't need to skip prompt when invoking help. --- util/install/fedora.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/install/fedora.sh b/util/install/fedora.sh index 9e92dc8ca898..20a14882069d 100755 --- a/util/install/fedora.sh +++ b/util/install/fedora.sh @@ -5,7 +5,7 @@ _qmk_install() { . /etc/os-release if [ "$VERSION_ID" -ge "39" ]; then - sudo dnf $SKIP_PROMPT copr -h >/dev/null 2>&1 || sudo dnf $SKIP_PROMPT install dnf-plugins-core + sudo dnf copr -h >/dev/null 2>&1 || sudo dnf $SKIP_PROMPT install dnf-plugins-core sudo dnf $SKIP_PROMPT copr enable erovia/dfu-programmer fi