diff --git a/src/atomic-xr/runtime.nu b/src/atomic-xr/runtime.nu index fb97705..1a96dc4 100644 --- a/src/atomic-xr/runtime.nu +++ b/src/atomic-xr/runtime.nu @@ -80,7 +80,7 @@ def ensure-installed [ } if ($missing_packages | is-not-empty) { - if (which dnf | length) == 0 { + if (which rpm-ostree | length) > 0 { rpm-ostree install ...$missing_packages job spawn { @@ -90,8 +90,13 @@ def ensure-installed [ } } null - } else { + } else if (which dnf | length) > 0 { pkexec dnf install ...$missing_packages + } else { + error make { + msg: "No supported package manager found" + help: "This operation is only supported on Fedora-based operating systems. If this is a Fedora-based OS, please submit a bug report." + } } } }