install-files: make symbolic links instead of copying
This commit is contained in:
parent
5b77fca9b9
commit
50c11a9acf
@ -6,12 +6,12 @@ function install_file()
|
||||
{
|
||||
source="${here}/$1"
|
||||
dest="${HOME}/$2"
|
||||
if [ -f "$dest" ]; then
|
||||
if [ -e "$dest" ]; then
|
||||
echo "Skipping $1"
|
||||
else
|
||||
echo "Installing $1"
|
||||
mkdir -p $(dirname "$dest")
|
||||
cp "$source" "$dest"
|
||||
ln -s "$source" "$dest"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user