diff options
author | Alan Pearce | 2013-10-07 08:30:02 +0100 |
---|---|---|
committer | Alan Pearce | 2013-10-07 08:30:02 +0100 |
commit | cd3947fad742a604cb5be03cc1378d803cd032c5 (patch) | |
tree | fb7b301deb8e9445cc31f4cd93ac735155c0b8a2 | |
parent | b9575ac8de66afd3a74665751760fa2edbda6061 (diff) | |
download | dotfiles-cd3947fad742a604cb5be03cc1378d803cd032c5.tar.lz dotfiles-cd3947fad742a604cb5be03cc1378d803cd032c5.tar.zst dotfiles-cd3947fad742a604cb5be03cc1378d803cd032c5.zip |
Remove unneeded canonicalisation from installer
-rwxr-xr-x | install | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/install b/install index 41d8290..b3dd84a 100755 --- a/install +++ b/install @@ -11,25 +11,11 @@ then 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 } |