mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Change order of removal for npm-based installations
This commit is contained in:
parent
4aca6ef86a
commit
4e098bcff7
2 changed files with 5 additions and 6 deletions
|
|
@ -265,10 +265,9 @@ main() {
|
||||||
info "$INSTALL_MSG"
|
info "$INSTALL_MSG"
|
||||||
|
|
||||||
# Check for existing safe-chain installation through nvm, volta, or npm
|
# Check for existing safe-chain installation through nvm, volta, or npm
|
||||||
# nvm must be checked first as it manages multiple Node versions
|
|
||||||
remove_nvm_installation
|
|
||||||
remove_volta_installation
|
|
||||||
remove_npm_installation
|
remove_npm_installation
|
||||||
|
remove_volta_installation
|
||||||
|
remove_nvm_installation
|
||||||
|
|
||||||
# Detect platform
|
# Detect platform
|
||||||
OS=$(detect_os)
|
OS=$(detect_os)
|
||||||
|
|
|
||||||
|
|
@ -151,10 +151,10 @@ main() {
|
||||||
warn "safe-chain command not found. Proceeding with uninstallation."
|
warn "safe-chain command not found. Proceeding with uninstallation."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove npm-based installations (nvm must be checked first)
|
# Check for existing safe-chain installation through nvm, volta, or npm
|
||||||
remove_nvm_installation
|
|
||||||
remove_volta_installation
|
|
||||||
remove_npm_installation
|
remove_npm_installation
|
||||||
|
remove_volta_installation
|
||||||
|
remove_nvm_installation
|
||||||
|
|
||||||
# Remove install dir recursively if it exists
|
# Remove install dir recursively if it exists
|
||||||
if [ -d "$INSTALL_DIR" ]; then
|
if [ -d "$INSTALL_DIR" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue