summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/lsrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/lsrc b/bin/lsrc
index e2a3618..cdebfeb 100755
--- a/bin/lsrc
+++ b/bin/lsrc
@@ -58,7 +58,11 @@ link_file() {
local dotted=$4
local dest_file=`build_path $dest_dir $file $dotted`
- $PRINT $dest_file:$dotfiles_dir/$file
+ if echo $DEST_STACK | grep -vq ":$dest_file"; then
+ DEST_STACK="$DEST_STACK:$dest_file"
+
+ $PRINT $dest_file:$dotfiles_dir/$file
+ fi
}
handle_file() {
@@ -131,6 +135,8 @@ handle_command_line() {
FILES=$@
}
+DEST_STACK=
+
if [ -e $HOME/.rcrc ]; then
. $HOME/.rcrc
fi