mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-14 10:21:09 +00:00
Merge pull request #2357 from Zeglius/smart-dnf-wrapper
feat: Smart dnf wrapper
This commit is contained in:
commit
d5bfbe4f54
@ -1,3 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Redirect to dnf5 if we are running inside a container
|
||||
if systemd-detect-virt -cq || { [[ -e /run/.containerenv || -e /.dockerenv ]]; }; then
|
||||
exec dnf5 "$@"
|
||||
fi
|
||||
|
||||
echo -e "ERROR: Fedora Atomic images utilize rpm-ostree instead (and is discouraged to use).\nPlease, \e]8;;https://docs.bazzite.gg/Installing_and_Managing_Software/\aread our documentation\e]8;;\a\n\e]8;;https://docs.bazzite.gg/Installing_and_Managing_Software/\ahttps://docs.bazzite.gg/Installing_and_Managing_Software/\e]8;;\a\n"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user