XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

envision: simplify os release detection

Signed-off-by: MatrixFurry <did:plc:zmjoeu3stwcn44647rhxa44o>

+1 -5
+1 -5
src/atomic-xr/envision.nu
··· 16 16 ] { 17 17 runtime install xr (if not $no_monado {"monado"}) (if not $no_slam {"slam"}) 18 18 19 - let VERSION_ID: string = (open -r /etc/os-release | parse "{k}={v}" | str trim -c '"' | where k == VERSION_ID | get v.0) 20 - 21 - if $VERSION_ID !~ '^\d{2}$' { error make { msg: 'VERSION_ID from /etc/os-release does not match Fedora versioning pattern.' } } 22 - 23 - distrobox create envision --no-entry -Y -i registry.fedoraproject.org/fedora-toolbox:($VERSION_ID) 19 + distrobox create envision --no-entry -Y -i registry.fedoraproject.org/fedora-toolbox:(sys host | get os_version) 24 20 distrobox enter envision -- sudo dnf install -y nu 25 21 upgrade --dev=($dev) 26 22 log info "Successfully installed Envision"