diff --git a/install.ps1 b/install.ps1 index be03810..486c7dc 100644 --- a/install.ps1 +++ b/install.ps1 @@ -139,6 +139,7 @@ function Copy-Auto() { Write-Host "${target} alreay exist." Write-Host "Now Backup.." Copy-Auto "${target}" "${target}.bak" + Remove-Item "${target}" -Recurse -Force Write-Host "" } diff --git a/install.sh b/install.sh index 99a2305..6958049 100755 --- a/install.sh +++ b/install.sh @@ -126,6 +126,7 @@ autocp() { echo "${target} alreay exist." echo "Now Backup.." autocp "${target}" "${target}.bak" + rm -rf "${target}" echo "" fi