Add --force to install.sh
This commit is contained in:
parent
f451f1be1f
commit
5689399c7b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue