docs(zram): 为 install.sh 添加远程执行使用说明

This commit is contained in:
严浩
2026-03-23 22:30:10 +08:00
parent 81b8b6e3bd
commit d7a6105629
+6
View File
@@ -1,4 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#
# ...
#
# 使用方法:
# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/2026/zram/install.sh"; curl -fsSL "$URL" | bash
# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/2026/zram/install.sh"; wget -q -O - "$URL" | bash
if ! declare -F print_red >/dev/null 2>&1; then if ! declare -F print_red >/dev/null 2>&1; then
print_red() { echo -e "\033[31m\033[01m$1$2\033[0m"; } print_red() { echo -e "\033[31m\033[01m$1$2\033[0m"; }