termux-connecting 1.1.25 → 1.1.26

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.
@@ -138,8 +138,8 @@ else
138
138
  fi
139
139
  fi
140
140
 
141
- # ─── 7. Informasi Koneksi ───
142
- title "6. Informasi Koneksi"
141
+ # ─── 6. Informasi Koneksi ───
142
+ title "5. Informasi Koneksi"
143
143
  USERNAME=$(whoami)
144
144
 
145
145
  IP=""
@@ -239,40 +239,40 @@ info "Setup selesai!"
239
239
  echo ""
240
240
 
241
241
  # ─── Opsional: Cek Permission ───
242
- if confirm "Cek permission & fitur tambahan (WiFi SSID, storage, auto-start)" "n"; then
242
+ if [ "$AUTO" = "false" ] && confirm "Cek permission & fitur tambahan (WiFi SSID, storage, auto-start)" "n"; then
243
243
  echo ""
244
244
  title "Status Permission & Fitur"
245
245
 
246
- HAS_API=false; HAS_STORAGE=false; HAS_BOOT=false
246
+ HAS_API="no"; HAS_STORAGE="no"; HAS_BOOT="no"
247
247
 
248
- command -v termux-wifi-connectioninfo >/dev/null 2>&1 && HAS_API=true
249
- [ -d "$HOME/storage" ] && HAS_STORAGE=true
250
- [ -f "$HOME/.termux/boot/boot-sshd" ] && HAS_BOOT=true
248
+ command -v termux-wifi-connectioninfo >/dev/null 2>&1 && HAS_API="yes"
249
+ [ -d "$HOME/storage" ] && HAS_STORAGE="yes"
250
+ [ -f "$HOME/.termux/boot/boot-sshd" ] && HAS_BOOT="yes"
251
251
 
252
252
  echo " ┌─────────────────────────────────────────────┐"
253
- $HAS_API && echo " │ ✅ Termux:API — WiFi SSID │" \
254
- || echo " │ ❌ Termux:API — WiFi SSID │"
255
- $HAS_STORAGE && echo " │ ✅ Storage — akses penyimpanan │" \
256
- || echo " │ ❌ Storage — akses penyimpanan │"
257
- $HAS_BOOT && echo " │ ✅ Termux:Boot — auto-start sshd │" \
258
- || echo " │ ❌ Termux:Boot — auto-start sshd │"
253
+ [ "$HAS_API" = "yes" ] && echo " │ ✅ Termux:API — WiFi SSID │" \
254
+ || echo " │ ❌ Termux:API — WiFi SSID │"
255
+ [ "$HAS_STORAGE" = "yes" ] && echo " │ ✅ Storage — akses penyimpanan │" \
256
+ || echo " │ ❌ Storage — akses penyimpanan │"
257
+ [ "$HAS_BOOT" = "yes" ] && echo " │ ✅ Termux:Boot — auto-start sshd │" \
258
+ || echo " │ ❌ Termux:Boot — auto-start sshd │"
259
259
  echo " └─────────────────────────────────────────────┘"
260
260
  echo ""
261
261
 
262
- if ! $HAS_API && confirm " Install Termux:API (WiFi SSID)" "y"; then
262
+ if [ "$HAS_API" = "no" ] && confirm " Install Termux:API (WiFi SSID)" "y"; then
263
263
  pkg install -y termux-api
264
264
  echo " Install aplikasi Termux:API dari F-Droid:"
265
265
  echo " https://f-droid.org/packages/com.termux.api/"
266
266
  echo ""
267
267
  fi
268
268
 
269
- if ! $HAS_STORAGE && confirm " Setup storage permission" "y"; then
269
+ if [ "$HAS_STORAGE" = "no" ] && confirm " Setup storage permission" "y"; then
270
270
  termux-setup-storage
271
271
  echo " Izininkan pop-up permission di Android"
272
272
  echo ""
273
273
  fi
274
274
 
275
- if ! $HAS_BOOT && confirm " Setup auto-start sshd (Termux:Boot)" "y"; then
275
+ if [ "$HAS_BOOT" = "no" ] && confirm " Setup auto-start sshd (Termux:Boot)" "y"; then
276
276
  mkdir -p "$HOME/.termux/boot"
277
277
  echo 'sshd' > "$HOME/.termux/boot/boot-sshd"
278
278
  chmod +x "$HOME/.termux/boot/boot-sshd"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",