karnel-termux 4.17.36 → 4.17.37

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.
@@ -1 +1 @@
1
- 6ce9fe8b0567a2129eac070d4c168dd5ea79450f
1
+ a175813fae11dcb0b9a2e5653f1bfcceccbec70a
@@ -116,7 +116,7 @@ _install_opencode_proot_impl() {
116
116
  "$ubuntu_root" "$PREFIX/bin/opencode" || return 1
117
117
 
118
118
  if ! grep -q '.opencode/bin' "$ubuntu_root/root/.bashrc" 2>/dev/null; then
119
- printf '\n# opencode\nexport PATH=/root/.opencode/bin:$PATH\n' >>"$ubuntu_root/root/.bashrc"
119
+ printf '\n# opencode\nexport PATH=/root/.opencode/bin:$PATH\n# end opencode\n' >>"$ubuntu_root/root/.bashrc"
120
120
  fi
121
121
 
122
122
  return 0
@@ -163,7 +163,7 @@ uninstall_opencode() {
163
163
  local ubuntu_root
164
164
  ubuntu_root="$(detect_ubuntu_root)/root/.bashrc"
165
165
  if [ -f "$ubuntu_root" ]; then
166
- sed -i '/# opencode/d; /export PATH=\/root\/.opencode\/bin/d' "$ubuntu_root"
166
+ sed -i '/# opencode$/,/# end opencode$/d' "$ubuntu_root"
167
167
  fi
168
168
 
169
169
  if rm -f "$PREFIX/bin/opencode" &>>"$LOG_FILE"; then
@@ -19,8 +19,12 @@ install_aircrack_ng() {
19
19
 
20
20
  uninstall_aircrack_ng() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_aircrack_ng() {
@@ -19,8 +19,12 @@ install_binwalk() {
19
19
 
20
20
  uninstall_binwalk() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_binwalk() {
@@ -19,8 +19,12 @@ install_dirb() {
19
19
 
20
20
  uninstall_dirb() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_dirb() {
@@ -19,8 +19,12 @@ install_exiftool() {
19
19
 
20
20
  uninstall_exiftool() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_exiftool() {
@@ -19,8 +19,12 @@ install_foremost() {
19
19
 
20
20
  uninstall_foremost() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_foremost() {
@@ -19,8 +19,12 @@ install_hashcat() {
19
19
 
20
20
  uninstall_hashcat() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_hashcat() {
@@ -19,8 +19,12 @@ install_hydra() {
19
19
 
20
20
  uninstall_hydra() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_hydra() {
@@ -19,8 +19,12 @@ install_john() {
19
19
 
20
20
  uninstall_john() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_john() {
@@ -18,9 +18,13 @@ install_netcat() {
18
18
  }
19
19
 
20
20
  uninstall_netcat() {
21
- log_info "Removendo netcat..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "netcat removido"
21
+ log_info "Removendo $_TOOL..."
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_netcat() {
@@ -19,8 +19,12 @@ install_nmap() {
19
19
 
20
20
  uninstall_nmap() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_nmap() {
@@ -19,8 +19,12 @@ install_smbclient() {
19
19
 
20
20
  uninstall_smbclient() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_smbclient() {
@@ -19,8 +19,12 @@ install_steghide() {
19
19
 
20
20
  uninstall_steghide() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_steghide() {
@@ -19,8 +19,12 @@ install_tcpdump() {
19
19
 
20
20
  uninstall_tcpdump() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_tcpdump() {
@@ -19,8 +19,12 @@ install_whois() {
19
19
 
20
20
  uninstall_whois() {
21
21
  log_info "Removendo $_TOOL..."
22
- pkg uninstall -y "$_PKG" 2>/dev/null || true
23
- log_success "$_TOOL removido"
22
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
+ log_success "$_TOOL removido"
24
+ return 0
25
+ fi
26
+ log_error "Falha ao remover $_TOOL"
27
+ return 1
24
28
  }
25
29
 
26
30
  update_whois() {
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
 
9
9
  install_applaunch() {
10
10
  local TOOL_DIR="$KARNEL_DATA/utils/applaunch"
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
 
9
9
  install_fconv() {
10
10
  local TOOL_DIR="$KARNEL_DATA/utils/fconv"
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
 
9
9
  install_filecheck() {
10
10
  local TOOL_DIR="$KARNEL_DATA/utils/filecheck"
@@ -3,7 +3,7 @@
3
3
  import "@/utils/log"
4
4
  import "@/utils/version"
5
5
 
6
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
6
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
7
7
 
8
8
  _install_httptmux_npm() {
9
9
  loading "Installing httptmux via npm" _install_httptmux_npm_impl
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
 
9
9
  install_passman() {
10
10
  local TOOL_DIR="$KARNEL_DATA/utils/passman"
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
  DOWNLOAD_URL="https://raw.githubusercontent.com/dedsec1121fk/DedSec/87d69293f4b89b8ab114fa644074629e86313182/Scripts/Network%20Tools/QR%20Code%20Generator.py"
9
9
 
10
10
  _qrcode_dependencies() {
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
 
9
9
  install_splash() {
10
10
  local TOOL_DIR="$KARNEL_DATA/utils/splash"
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
 
9
9
  install_treex() {
10
10
  local TOOL_DIR="$KARNEL_DATA/utils/treex"
@@ -4,7 +4,7 @@ import "@/utils/log"
4
4
  import "@/utils/version"
5
5
  import "@/utils/downloaded-python"
6
6
 
7
- LOG_FILE="$KARNEL_CACHE/install_dev.log"
7
+ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
 
9
9
  install_websites() {
10
10
  local TOOL_DIR="$KARNEL_DATA/utils/websites"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karnel-termux",
3
- "version": "4.17.36",
3
+ "version": "4.17.37",
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"