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) # Use HOME on Unix, USERPROFILE on Windows (PowerShell Core is cross-platform)
$HomeDir = if ($env:HOME) { $env:HOME } else { $env:USERPROFILE } $HomeDir = if ($env:HOME) { $env:HOME } else { $env:USERPROFILE }
$DotSafeChain = Join-Path $HomeDir ".safe-chain" $DotSafeChain = Join-Path $HomeDir ".safe-chain"
$DotAikido = Join-Path $HomeDir ".aikido"
$InstallDir = Join-Path $DotSafeChain "bin" $InstallDir = Join-Path $DotSafeChain "bin"
# Helper functions # Helper functions
@ -140,21 +139,6 @@ function Uninstall-SafeChain {
Write-Info "Installation directory $DotSafeChain does not exist. Nothing to remove." 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!" Write-Info "safe-chain has been uninstalled successfully!"
} }

View file

@ -8,7 +8,6 @@ set -e # Exit on error
# Configuration # Configuration
DOT_SAFE_CHAIN="${HOME}/.safe-chain" DOT_SAFE_CHAIN="${HOME}/.safe-chain"
DOT_AIKIDO="${HOME}/.aikido"
# Colors for output # Colors for output
RED='\033[0;31m' RED='\033[0;31m'
@ -164,14 +163,6 @@ main() {
else else
info "Installation directory $DOT_SAFE_CHAIN does not exist. Nothing to remove." info "Installation directory $DOT_SAFE_CHAIN does not exist. Nothing to remove."
fi fi
# Remove install dir recursively if it exists
if [ -d "$DOT_AIKIDO" ]; then
info "Removing installation directory $DOT_AIKIDO"
rm -rf "$DOT_AIKIDO" || error "Failed to remove $DOT_AIKIDO"
else
info "Installation directory $DOT_AIKIDO does not exist. Nothing to remove."
fi
} }
main "$@" main "$@"