install-files: make symbolic links instead of copying
This commit is contained in:
1 parent
5b77fca9b9
commit
50c11a9acf
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user