Commit Graph

2269 Commits

Author SHA1 Message Date
juewuy
f72192e801 Merge branch 'dev' into master
# Conflicts:
#	ShellCrash.tar.gz
#	bin/clashfm.tar.gz
#	bin/version
#	version
2026-01-08 10:14:27 +08:00
juewuy
2c5dfe04c8 ~1.9.4beta1打包 2026-01-08 10:12:18 +08:00
juewuy
8ef30efa31 ~bug fix 2026-01-08 10:10:58 +08:00
juewuy
6d1b2a0a26 Merge pull request #1089 from sofia-riese/patch-1
refactor: replace recursion with while loop in setboot
2026-01-08 09:15:10 +08:00
juewuy
2619b0991c Merge pull request #1088 from Maozai-Teng/dev
修复自动选择可能会选到“剩余流量:xxx”、“距离下次重置:xxx”这种垃圾节点
2026-01-08 09:14:03 +08:00
Sofia
b636b49eb6 refactor: replace recursion with while loop in setboot 2026-01-08 00:19:36 +08:00
小小小猫仔
5f3cade963 Add files via upload 2026-01-07 22:25:06 +08:00
小小小猫仔
60747987e9 Add files via upload 2026-01-07 22:24:46 +08:00
小小小猫仔
e42182cde6 修复自动选择可能会选到“剩余流量:xxx”、“距离下次重置:xxx”这种垃圾节点
修复自动选择可能会选到“剩余流量:xxx”、“距离下次重置:xxx”这种垃圾节点
2026-01-07 22:12:55 +08:00
小小小猫仔
26130510fa 修复自动选择可能会选到“剩余流量:xxx”、“距离下次重置:xxx”这种垃圾节点
修复自动选择可能会选到“剩余流量:xxx”、“距离下次重置:xxx”这种垃圾节点
2026-01-07 22:12:29 +08:00
juewuy
5032cf6d8b ~1.9.3alpha8打包 2026-01-07 20:35:08 +08:00
juewuy
1c2474cf9e ~增加ecs优化功能 2026-01-07 20:23:56 +08:00
juewuy
0a0e5c0af9 ~增加ecs优化功能 2026-01-07 20:17:36 +08:00
juewuy
43cf4a914b ~重写常用端口过滤功能 2026-01-07 18:21:04 +08:00
juewuy
236292ac9f Merge pull request #1087 from sofia-riese/patch-2
Corrects potential errors when filenames are separated by spaces
2026-01-07 17:52:43 +08:00
juewuy
ecb10510cf Merge pull request #1086 from sofia-riese/patch-1
Keep addressing function self-invocation
2026-01-07 17:51:34 +08:00
Sofia
5306c8d3da Correct potential errors 2026-01-07 17:25:44 +08:00
Sofia
45b12fc70b Correct potential errors 2026-01-07 17:21:04 +08:00
Sofia
0b8bf53299 Keep addressing function self-invocation 2026-01-07 15:44:58 +08:00
juewuy
333a553b28 Merge pull request #1085 from sofia-riese/patch-1
Continue to address the issue of function self-invocation
2026-01-07 13:44:59 +08:00
Sofia
364fd54ced Continue to address the issue of function self-invocation 2026-01-07 12:30:14 +08:00
juewuy
2e85085cf7 Merge pull request #1084 from sofia-riese/patch-1
Fix tar extraction and grep command syntax
2026-01-07 11:12:34 +08:00
juewuy
8cda75e055 Merge pull request #1083 from sofia-riese/patch-5
Continue to address the issue of function self-invocation
2026-01-07 11:12:01 +08:00
juewuy
22cd7766cd ~增加单独指定dns劫持端口的功能(用于搭配第三方DNS服务) 2026-01-07 11:11:17 +08:00
juewuy
27dfc69f50 ~增加单独指定dns劫持端口的功能(用于搭配第三方DNS服务) 2026-01-07 11:10:45 +08:00
Sofia
ef3ff50fbf Fix tar extraction and grep command syntax 2026-01-07 10:37:08 +08:00
juewuy
f46cdade4d ~改为统一使用ON/OFF来表示功能开启关闭状态 2026-01-07 10:16:39 +08:00
Sofia
1d7be3a3a0 Continue to address the issue of function self-invocation 2026-01-07 09:58:56 +08:00
juewuy
098a70c067 ~1.9.3alpha7.3打包 2026-01-07 09:34:47 +08:00
juewuy
3770a0ebaf Merge branch 'dev' of https://github.com/juewuy/ShellCrash into dev 2026-01-07 09:30:44 +08:00
juewuy
981d6f7ec0 ~兼容调整 2026-01-07 09:30:27 +08:00
juewuy
496a10264a Merge pull request #1080 from sofia-riese/patch-1
Fix syntax errors
2026-01-07 01:16:27 +08:00
juewuy
cca59fe5d2 Merge pull request #1081 from sofia-riese/patch-2
Change shell type
2026-01-07 01:15:51 +08:00
Sofia Riese
a48ad916d2 Change shell type 2026-01-06 23:08:21 +08:00
Sofia Riese
d3f751e876 Correcting syntax errors 2026-01-06 22:20:49 +08:00
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