mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-04 02:40:05 +00:00
chore: Simpler copr script (#1829)
This depends on https://github.com/ublue-os/main/pull/663
This commit is contained in:
parent
a0d3f7462e
commit
0edc61509b
@ -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 "$@"
|
Loading…
Reference in New Issue
Block a user