docs(zram): 为 install.sh 添加远程执行使用说明
This commit is contained in:
@@ -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"; }
|
||||||
|
|||||||
Reference in New Issue
Block a user