Skip to content

Commit

Permalink
chore: Simpler copr script (#1829)
Browse files Browse the repository at this point in the history
This depends on ublue-os/main#663
  • Loading branch information
Zeglius authored Nov 1, 2024
1 parent a0d3f74 commit 0edc615
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions system_files/desktop/shared/usr/bin/copr
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 0edc615

Please sign in to comment.