Install dnf copr plugin if not present (i.e. docker containers). (#24308)

* Install `dnf copr` plugin if not present (i.e. docker containers).

* Don't need to skip prompt when invoking help.
This commit is contained in:
Nick Brassel 2024-10-06 21:39:37 +13:00 committed by GitHub
parent e12c1fefdf
commit c82f675266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,7 @@ _qmk_install() {
. /etc/os-release . /etc/os-release
if [ "$VERSION_ID" -ge "39" ]; then if [ "$VERSION_ID" -ge "39" ]; then
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 sudo dnf $SKIP_PROMPT copr enable erovia/dfu-programmer
fi fi