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.

Add safe mode to install script

+7 -4
+7 -4
install.nu
··· 7 7 def main [ 8 8 prefix: string = "~/.local" 9 9 --install-library (-l) 10 + --safe (-s) # Don't remove files, and fail if they exist 10 11 ] { 11 12 let prefix = $prefix | path expand 12 13 ··· 18 19 | str replace "/@AXR_LIB@/" $"use ($lib_dir)/atomic-xr" 19 20 20 21 let bin = $prefix | path join "bin" "axr" 22 + 23 + if not $safe { 24 + rm -rf ($lib_dir | path join "atomic-xr") 25 + rm -f $bin 26 + } 21 27 22 28 mkdir $lib_dir 23 - rm -rf ($lib_dir | path join "atomic-xr") # Remove old library if it exists 24 29 cp -r src/atomic-xr $lib_dir 25 - 26 30 if $install_library { 27 - rm -f ($NU_LIB_DIRS | first | path join "atomic-xr") 31 + if not $safe {rm -f ($NU_LIB_DIRS | first | path join "atomic-xr")} 28 32 ln -s ($lib_dir | path join "atomic-xr") ($NU_LIB_DIRS | first) 29 33 } 30 34 31 35 mkdir ($bin | path dirname) 32 - rm -f $bin 33 36 $axr | save $bin 34 37 chmod +x $bin 35 38