Improve install script

This commit is contained in:
lhark 2015-12-01 01:06:33 +01:00
parent 4056bb6789
commit 2539af5761

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
@ -9,6 +9,5 @@ FILES="vimrc zshrc gitconfig vim"
# Create symbolic links in the user's home dir
for file in $FILES
do
ln -s -T $SCRIPTPATH/$file .$file
mv .$file $HOME
ln -s -t $HOME .$file
done