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.

Use safe install mode by default

+3 -3
+3 -3
install.nu
··· 9 9 def main [ 10 10 prefix: string = "~/.local" 11 11 --install-library (-l) 12 - --safe (-s) # Don't remove files, and fail if they exist 12 + --force (-f) # Overwrite existing files 13 13 ] { 14 14 let prefix = $prefix | path expand 15 15 log debug $"Install prefix: ($prefix)" ··· 18 18 | str replace -a "/@AXR_LIB@/" $"use ($lib_dir)/atomic-xr" 19 19 let bin = $prefix | path join "bin" "axr" 20 20 21 - if not $safe { 21 + if $force { 22 22 rm -rf ($lib_dir | path join "atomic-xr") 23 23 rm -f $bin 24 24 } ··· 26 26 mkdir $lib_dir 27 27 cp -r ($self | path join 'src' 'atomic-xr') $lib_dir 28 28 if $install_library { 29 - if not $safe {rm -f ($NU_LIB_DIRS | first | path join "atomic-xr")} 29 + if $force {rm -f ($NU_LIB_DIRS | first | path join "atomic-xr")} 30 30 ln -s ($lib_dir | path join "atomic-xr") ($NU_LIB_DIRS | first) 31 31 } 32 32