From 50c11a9acf64307cc82b6bd2c481bc64e4886ebc Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 29 Sep 2011 14:59:47 -0400 Subject: [PATCH] install-files: make symbolic links instead of copying --- install-files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-files b/install-files index 8392485..8f2006e 100755 --- a/install-files +++ b/install-files @@ -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 }