mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 22:49:12 +00:00
Fix installation script and update documentation
- Simplify install.sh to use direct installation only - Remove Homebrew option until homebrew-tap is ready - Update README to reflect current installation methods - Remove redundant content sections
This commit is contained in:
@@ -23,10 +23,10 @@
|
|||||||
curl -fsSL https://raw.githubusercontent.com/tw93/clean-mac/main/install.sh | bash
|
curl -fsSL https://raw.githubusercontent.com/tw93/clean-mac/main/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### Homebrew
|
### Homebrew (Coming Soon)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew tap tw93/tap
|
# Will be available soon
|
||||||
brew install clean-mac
|
brew install clean-mac
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
30
install.sh
30
install.sh
@@ -134,39 +134,15 @@ install_direct() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Choose installation method
|
# Choose installation method - always use direct installation for now
|
||||||
if [[ "$FORCE_DIRECT" == "true" ]]; then
|
if [[ "$FORCE_DIRECT" == "true" ]]; then
|
||||||
install_direct
|
install_direct
|
||||||
INSTALL_SUCCESS=$?
|
INSTALL_SUCCESS=$?
|
||||||
else
|
else
|
||||||
# Try Homebrew first, fallback to direct
|
# Always use direct installation until homebrew-tap is ready
|
||||||
if command -v brew >/dev/null 2>&1; then
|
log_info "Using direct installation..."
|
||||||
echo ""
|
|
||||||
echo "Choose installation method:"
|
|
||||||
echo "1) Homebrew (recommended)"
|
|
||||||
echo "2) Direct installation"
|
|
||||||
echo ""
|
|
||||||
read -p "Enter choice (1-2, default: 1): " -n 1 -r
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
if [[ $REPLY =~ ^[2]$ ]]; then
|
|
||||||
install_direct
|
install_direct
|
||||||
INSTALL_SUCCESS=$?
|
INSTALL_SUCCESS=$?
|
||||||
else
|
|
||||||
install_via_homebrew
|
|
||||||
INSTALL_SUCCESS=$?
|
|
||||||
|
|
||||||
if [[ $INSTALL_SUCCESS -ne 0 ]]; then
|
|
||||||
log_warning "Homebrew installation failed, trying direct installation..."
|
|
||||||
install_direct
|
|
||||||
INSTALL_SUCCESS=$?
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
log_info "Homebrew not found, using direct installation..."
|
|
||||||
install_direct
|
|
||||||
INSTALL_SUCCESS=$?
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify installation
|
# Verify installation
|
||||||
|
|||||||
Reference in New Issue
Block a user