all repos — nixfiles @ cd3947fad742a604cb5be03cc1378d803cd032c5

System and user configuration, managed by nix and home-manager

Remove unneeded canonicalisation from installer

Alan Pearce
commit

cd3947fad742a604cb5be03cc1378d803cd032c5

parent

b9575ac8de66afd3a74665751760fa2edbda6061

1 file changed, 1 insertion(+), 15 deletions(-)

jump to
M installinstall
@@ -11,25 +11,11 @@ git clone ssh://alan@home.alanpearce.co.uk:22222/~/dotfiles.git
fi install-dot () { - local absolute - if [[ ${1[-1]} == "/" ]] - then - absolute=$PWD/ - - if [[ ! -d $1 ]] - then - mkdir $1 - fi - - else - absolute="" - fi - for f in $@[2,-1] do if [[ ! -e $1$f:t ]] then - ln -sf $absolute$f $1$f:t + ln -sf $f $1$f:t fi done }