From 5689399c7b90a9c737c5f2dc9cbf6286655f1460 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 29 Sep 2014 15:36:20 -0400 Subject: [PATCH] Add --force to install.sh --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 684a0ddd..5fb9c890 100755 --- a/install.sh +++ b/install.sh @@ -8,6 +8,7 @@ shopt -s extglob for rcfile in "$HOME"/.dotfiles/!(bin|README.md|Gemfile|install.sh); do filep="$HOME/."$(basename "$rcfile") + [ "$1" == "--force" ] && rm -f "$filep" [ -e "$filep" ] && continue - ln -vs "$rcfile" $filep + ln -vsF "$rcfile" $filep done