Commit Graph

2232 Commits

Author SHA1 Message Date
juewuy
50351fe6dc ~1.9.3alpha7.2打包 2026-01-06 21:27:26 +08:00
juewuy
7c8b0874bd ~优化ddns脚本 2026-01-06 21:26:22 +08:00
juewuy
3dec4a0d65 ~优化屏蔽quic实现机制,修复bug 2026-01-06 15:58:51 +08:00
juewuy
3772593f66 ~检查更新流程优化
~padavan自启优化
~部分界面文本优化
~bug fix
2026-01-06 14:51:18 +08:00
juewuy
93ac1b1da9 ~优化dir_avail函数 2026-01-06 13:45:20 +08:00
juewuy
0e9a14cc9d Merge pull request #1079 from ruth-hale/patch-7
Fix path for clashdb.tar.gz extraction
2026-01-06 13:26:54 +08:00
juewuy
2ef2a3e4ec Merge pull request #1078 from ruth-hale/patch-6
Refactor dir_avail function
2026-01-06 13:26:17 +08:00
juewuy
f218be0ff5 Merge pull request #1074 from ruth-hale/patch-4
Continue replace self-invoked with a while true loop
2026-01-06 13:25:31 +08:00
nested-universe
d0c0fe63dc Fix path for clashdb.tar.gz extraction 2026-01-05 18:27:53 +08:00
nested-universe
4360f6a702 Refactor dir_avail function
#### **1. Execution Efficiency**
* **Optimized Execution:** Streamlined from 4 external processes to just 2 (`df` and `awk`) by eliminating complex matrix transposition loops and string matching, significantly boosting execution speed and reducing overhead.

#### **2. Readability & Maintainability**
* **Clean Code:** Replaced 3 lines of convoluted logic with a single, clear pipeline.

#### **3. Robustness**
* **Anti-Wrapping:** The `-P` flag ensures the output stays on one line, preventing errors caused by long filesystem names that usually break `df` formatting.
* **Safe Defaults:** Uses `${1:-.}` to gracefully handle cases where no directory path is provided.
* **Dynamic Column Targeting:** Uses `$(NF-2)` to locate the "Available" column by position instead of fragile keyword filtering (e.g., "Available" or "可用"). This ensures locale-independence and correctly identifies the space value even if filesystem names contain spaces or if the system language changes.This is more robust than fixed column numbers because it correctly identifies the space value even if the filesystem name contains spaces or if the system adds extra trailing info.

#### **4. Seamless Compatibility**
* **Drop-in Replacement:** Fully supports your existing call patterns.
* **Zero Refactoring:** No changes are needed in the rest of your script to switch to this version.
2026-01-03 11:06:58 +08:00
juewuy
8faeec6cd2 Merge pull request #1077 from nested-universe/patch-5
Fix installation alias selection
2026-01-03 09:28:31 +08:00
nested-universe
8632dd9cb1 Change shebang to use env for bash 2026-01-03 09:26:50 +08:00
nested-universe
e57ae68396 Fix installation alias selection 2026-01-03 09:21:57 +08:00
juewuy
6108f66acc 更新 compose.yml 2026-01-02 19:26:53 +08:00
juewuy
5eb7f0988b 更新 README.md 2026-01-02 19:26:28 +08:00
nested-universe
3b4f3220dc Continue replace self-invoked with a while true loop
Currently, there appears to be no large-scale error.
So, keep going.
2026-01-02 17:33:32 +08:00
juewuy
dc1bf88840 更新 compose.yml 2026-01-02 15:47:05 +08:00
juewuy
fd9593f536 fix 2026-01-02 11:29:06 +08:00
juewuy
40a01428a5 ~调整内核下载功能
~bug修复
~找回误删的防止dnsmasq重定向功能
2026-01-02 11:28:27 +08:00
juewuy
b35f483652 fix 2026-01-02 11:19:29 +08:00
juewuy
2cfb2e5c08 已修改 .github/workflows/core_auto_update.yml 2026-01-02 11:15:59 +08:00
juewuy
7e1e7fa98d ~调整自动编译 2026-01-02 11:12:33 +08:00
juewuy
4238c7d433 已修改 .github/workflows/update_singbox_core.yaml 2026-01-02 11:06:36 +08:00
juewuy
7b07509887 ~优化alpha版本号为当前日期 2026-01-02 10:54:12 +08:00
juewuy
7e51c8bec0 ~仅在tar.gz包时变更版本号 2026-01-02 10:13:13 +08:00
juewuy
4b12ae7a28 ~增加"match_only": true分支特性 2026-01-02 10:06:41 +08:00
juewuy
6979ba9c83 ~upx压缩改为默认压缩率 2026-01-02 09:57:25 +08:00
juewuy
ea92f3e701 ~1.9.3alpha7打包 2026-01-01 15:54:04 +08:00
juewuy
760458cd58 ~修复zsh环境安装报错
~修复singbox内核ss入站无法生效的bug
2026-01-01 15:53:20 +08:00
juewuy
849fc928ed Merge branch 'dev' of https://github.com/juewuy/ShellCrash into dev 2026-01-01 15:41:40 +08:00
juewuy
ecca342893 ~修复crontab报错
~部分细节调整
2026-01-01 15:38:26 +08:00
juewuy
f83c46a99a Merge pull request #1070 from nested-universe/patch-3
Continue replace self-invoked with a while true loop
2026-01-01 14:53:29 +08:00
juewuy
389a24c139 Merge pull request #1068 from Maozai-Teng/dev
重要更新,之前忘记给private加直连了_(:3」 ∠)_
2026-01-01 14:48:24 +08:00
nested-universe
ea2a56f871 Continue replace self-invoked with a while true loop
- Use CASE statements instead of if-elif statements.
- Replace self-invoked with a while true loop.
- Wrap the inner function outside the parent function to prevent duplicate declarations caused by the while true loop.
2026-01-01 14:45:37 +08:00
juewuy
4f31373c5f ~增加3种不同的内核压缩方式,并对应不同版本分支 2026-01-01 14:19:43 +08:00
juewuy
26567c0862 已修改 .github/workflows/update_singbox_core.yaml 2026-01-01 14:03:10 +08:00
juewuy
a4363080bb 已修改 .github/workflows/update_singbox_core.yaml 2026-01-01 14:02:35 +08:00
juewuy
4eb4ac5871 ~改为按输入的压缩类型进行压缩 2026-01-01 13:42:05 +08:00
小小小猫仔
5158b36b1a 重要更新,之前忘记给private加直连了_(:3」 ∠)_
重要更新,之前忘记给private加直连了_(:3」 ∠)_
2026-01-01 13:37:11 +08:00
juewuy
ba1bd75666 ~修复upx被上传到github的bug 2026-01-01 13:04:43 +08:00
juewuy
4cdcb39f86 ~增加内核upx压缩 2026-01-01 12:58:05 +08:00
juewuy
e6ef71510e Update update_meta_core.yaml 2026-01-01 12:22:09 +08:00
juewuy
6324cee884 Update update_meta_core.yaml 2026-01-01 12:15:34 +08:00
juewuy
24d7dda41e Update update_meta_core.yaml 2026-01-01 11:34:56 +08:00
juewuy
eb97732930 已修改 .github/workflows/update_meta_core.yaml 2026-01-01 11:30:40 +08:00
juewuy
7c01df50fe ~增加upx压缩 2026-01-01 11:18:38 +08:00
juewuy
5aafe92198 ~调整Tailscale的缓存目录为安装目录,增加设备名称设置选项
~修复部分设备开机初始化失败的bug
~部分代码细节优化
2026-01-01 10:43:25 +08:00
juewuy
abb90eb6f0 修复auto_start.sh脚本调用失败 2026-01-01 08:13:24 +08:00
juewuy
69acd4ce7a Merge branch 'dev' of https://github.com/juewuy/ShellCrash into dev 2025-12-31 21:15:05 +08:00
juewuy
5e27b3fbd6 ~修复默认dns启动报错 2025-12-31 21:14:55 +08:00