Force delete dest if exists

This commit is contained in:
Henrik Lissner 2013-03-23 03:44:56 -04:00
parent 0edfdd4599
commit d83544f931

View file

@ -11,8 +11,8 @@ function do_log {
# Check if a symlink exists before trying to create it
function do_link {
if [ -h "$2" ]; then
rm "$2"
if [ -e "$2" ]; then
rm -rf "$2"
fi
if [ ! -e "$2" ]; then
ln -sf "$1" "$2"