karnel-termux 4.11.1 → 4.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,15 +85,26 @@ open_main() {
85
85
  esac
86
86
 
87
87
  if command -v termux-open-url &>/dev/null; then
88
- termux-open-url "$url"
89
- log_success "Opening: ${D_CYAN}$url${NC}"
88
+ termux-open-url "$url" 2>/dev/null && {
89
+ log_success "Opening: ${D_CYAN}$url${NC}"
90
+ return 0
91
+ }
92
+ log_warn "Failed to open URL, printing to terminal instead"
93
+ echo
94
+ echo " ${D_CYAN}$url${NC}"
95
+ echo
90
96
  elif command -v termux-open &>/dev/null; then
91
- termux-open "$url"
92
- log_success "Opening: ${D_CYAN}$url${NC}"
97
+ termux-open "$url" 2>/dev/null && {
98
+ log_success "Opening: ${D_CYAN}$url${NC}"
99
+ return 0
100
+ }
101
+ log_warn "Failed to open URL, printing to terminal instead"
102
+ echo " ${D_CYAN}$url${NC}"
93
103
  else
94
- log_error "termux-open-url not found. Are you running in Termux?"
95
- echo "Documentation at: $url"
96
- return 1
104
+ log_info "Documentation at:"
105
+ echo
106
+ echo " ${D_CYAN}$url${NC}"
107
+ echo
97
108
  fi
98
109
  }
99
110
 
@@ -124,6 +135,9 @@ open_help() {
124
135
  printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "utils" "Utility tools"
125
136
  printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "voice" "Voice command"
126
137
  printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "osint" "OSINT tools"
138
+ printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "plugin" "Plugin system"
139
+ printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "security" "Security tools"
140
+ printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "backup" "Backup & Restore"
127
141
  echo
128
142
  separator_section "Website"
129
143
  echo
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- KARNEL_VERSION="4.11.1"
3
+ KARNEL_VERSION="4.11.2"
4
4
 
5
5
  # -------------------------
6
6
  # Directorios del usuario
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karnel-termux",
3
- "version": "4.11.1",
3
+ "version": "4.11.2",
4
4
  "description": "Modular Dev Environment for Termux — install languages, databases, AI agents, editors, and more with one command",
5
5
  "bin": {
6
6
  "karnel": "karnel/bin/karnel"