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
fix
2026-01-02 11:19:29 +08:00
fix
2026-01-02 11:29:06 +08:00
2026-01-02 19:26:53 +08:00
2025-12-28 19:13:42 +08:00
2026-01-02 11:28:27 +08:00
2025-12-10 20:56:27 +08:00
2025-12-17 22:00:25 +08:00
2026-01-03 11:06:58 +08:00
2025-12-21 09:52:22 +08:00
2025-12-31 15:15:33 +08:00
2023-11-03 15:51:41 +08:00
fix
2026-01-02 11:29:06 +08:00
fix
2026-01-02 11:29:06 +08:00


ShellCrash

中文 | English

Function introduction:

~Convenient use in Shell environment through management script Crash
~Support management of Crash functions
~Support online import Crash supports sharing, subscription and configuration links
~Support configuration timing tasks, support configuration file timing updates
~Support online installation and Use local web panel to manage built-in rules
~Support routing mode, native mode and other mode switching
~Support online update

Equipment support:

~Support various router devices based on OpenWrt or secondary custom development using OpenWrt
~Support various devices running standard Linux systems (such as Debian/CenOS/Armbian, etc.)
~Compatible with Padavan firmware (conservative mode), Pandora firmware
~Compatible with various types of devices customized and developed using the Linux kernel
——————————
~For more device support, please submit an issue or go to the TG group for feedback (the device name and the device core information returned by running uname -a must be provided)

Description
No description provided
Readme 8.9 GiB
Languages
Shell 99.4%
Dockerfile 0.6%