Remove unneeded canonicalisation from installer
Alan Pearce alan@alanpearce.co.uk
Mon, 07 Oct 2013 08:30:02 +0100
1 files changed, 1 insertions(+), 15 deletions(-)
jump to
M install → install
@@ -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 }