1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 15:04:42 +00:00

📝 Update instructions

This commit is contained in:
Tw93
2025-10-04 07:26:42 +08:00
parent 0db510244d
commit 41178b9cc1
4 changed files with 27 additions and 0 deletions

10
mole
View File

@@ -139,6 +139,16 @@ show_help() {
# Simple update function
update_mole() {
# Check if installed via Homebrew
if command -v brew >/dev/null 2>&1 && brew list mole >/dev/null 2>&1; then
echo -e "${YELLOW}Mole is installed via Homebrew${NC}"
echo ""
echo "Please use Homebrew to update:"
echo -e " ${GREEN}brew upgrade mole${NC}"
echo ""
exit 0
fi
log_info "Updating Mole..."
local installer_url="https://raw.githubusercontent.com/tw93/mole/main/install.sh"