diff --git a/install-scripts/uninstall-safe-chain.ps1 b/install-scripts/uninstall-safe-chain.ps1 index 5fdae1c..3292cdd 100644 --- a/install-scripts/uninstall-safe-chain.ps1 +++ b/install-scripts/uninstall-safe-chain.ps1 @@ -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!" } diff --git a/install-scripts/uninstall-safe-chain.sh b/install-scripts/uninstall-safe-chain.sh index 0d04128..dff6f31 100755 --- a/install-scripts/uninstall-safe-chain.sh +++ b/install-scripts/uninstall-safe-chain.sh @@ -8,7 +8,6 @@ set -e # Exit on error # Configuration DOT_SAFE_CHAIN="${HOME}/.safe-chain" -DOT_AIKIDO="${HOME}/.aikido" # Colors for output RED='\033[0;31m' @@ -164,14 +163,6 @@ main() { else info "Installation directory $DOT_SAFE_CHAIN does not exist. Nothing to remove." 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 "$@"