Don't delete .aikido folder

This commit is contained in:
Sander Declerck 2026-03-19 15:51:20 +01:00
parent 9494b5aae8
commit ffbdedc7cd
No known key found for this signature in database
2 changed files with 0 additions and 25 deletions

View file

@ -5,7 +5,6 @@
# Use HOME on Unix, USERPROFILE on Windows (PowerShell Core is cross-platform)
$HomeDir = if ($env:HOME) { $env:HOME } else { $env:USERPROFILE }
$DotSafeChain = Join-Path $HomeDir ".safe-chain"
$DotAikido = Join-Path $HomeDir ".aikido"
$InstallDir = Join-Path $DotSafeChain "bin"
# Helper functions
@ -140,21 +139,6 @@ function Uninstall-SafeChain {
Write-Info "Installation directory $DotSafeChain does not exist. Nothing to remove."
}
# Remove .aikido directory
if (Test-Path $DotAikido) {
Write-Info "Removing installation directory: $DotAikido"
try {
Remove-Item -Path $DotAikido -Recurse -Force
Write-Info "Successfully removed installation directory"
}
catch {
Write-Error-Custom "Failed to remove $DotAikido : $_"
}
}
else {
Write-Info "Installation directory $DotAikido does not exist. Nothing to remove."
}
Write-Info "safe-chain has been uninstalled successfully!"
}