From 0edc61509b3a98dadd1dc26562ef00bb7605adc3 Mon Sep 17 00:00:00 2001 From: Zeglius <33781398+Zeglius@users.noreply.github.com> Date: Sat, 2 Nov 2024 00:40:58 +0100 Subject: [PATCH] chore: Simpler copr script (#1829) This depends on https://github.com/ublue-os/main/pull/663 --- system_files/desktop/shared/usr/bin/copr | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/system_files/desktop/shared/usr/bin/copr b/system_files/desktop/shared/usr/bin/copr index 1b25db1007..b5357431ff 100755 --- a/system_files/desktop/shared/usr/bin/copr +++ b/system_files/desktop/shared/usr/bin/copr @@ -1,15 +1,2 @@ #!/bin/bash - -# Wrapper for 'dnf5 copr' -# Includes Workaround to append the chroot "fedora-RELEASE-ARCH" -function dnf5_wrapper() { - precmd="/usr/bin/dnf5 copr" - if [[ $* =~ copr\s+enable && $# -eq 2 ]]; then - exec $precmd enable "$2" "${3:-fedora-"$(lsb_release -sr)"-"$(uname -m)"}" - else - exec $precmd "$@" - fi - return -} - -dnf5_wrapper "$@" +exec dnf copr "$@" \ No newline at end of file