mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Don't delete .aikido folder
This commit is contained in:
parent
9494b5aae8
commit
ffbdedc7cd
2 changed files with 0 additions and 25 deletions
|
|
@ -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!"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue