From be802ddca0b5319ce510c9b0f3871cb96c67c79d Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sun, 29 May 2011 18:29:21 +0200 Subject: [PATCH] simpler exclusion --- scripts/make_links.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/make_links.sh b/scripts/make_links.sh index 85f7725..e706943 100755 --- a/scripts/make_links.sh +++ b/scripts/make_links.sh @@ -1,9 +1,15 @@ #!/bin/sh for dotfile in *; do - if [ "${dotfile}" != "scripts" ]; then - echo "linking ${dotfile}" - ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}" - fi + case "${dotfile}" in + scripts|Makefile) + # NOOP + ;; + *) + # link the file with a leading dot + echo "linking ${dotfile}" + ln -sf "$(pwd)/${dotfile}" "$HOME/.${dotfile}" + ;; + esac done