Force delete dest if exists
This commit is contained in:
parent
0edfdd4599
commit
d83544f931
|
@ -11,8 +11,8 @@ function do_log {
|
||||||
|
|
||||||
# Check if a symlink exists before trying to create it
|
# Check if a symlink exists before trying to create it
|
||||||
function do_link {
|
function do_link {
|
||||||
if [ -h "$2" ]; then
|
if [ -e "$2" ]; then
|
||||||
rm "$2"
|
rm -rf "$2"
|
||||||
fi
|
fi
|
||||||
if [ ! -e "$2" ]; then
|
if [ ! -e "$2" ]; then
|
||||||
ln -sf "$1" "$2"
|
ln -sf "$1" "$2"
|
||||||
|
|
Loading…
Reference in a new issue