更新文档

This commit is contained in:
Super Manito
2025-10-05 10:01:15 +08:00
parent 55b22bf72b
commit 8e88ae4fbb
15 changed files with 776 additions and 615 deletions

22
docs/other/example2.md Normal file
View File

@@ -0,0 +1,22 @@
``` bash
# !/bin/bash
function install_docker() {
if command -v docker &>/dev/null; then
return
fi
bash <(curl -sSL https://${script_host}/docker.sh) \
--install-latest true \
--ignore-backup-tips
if command -v docker &>/dev/null; then
echo -e "\n# Docker installation successful.\n# Please run this script again manually after installation."
exit 0
else
echo -e "\n# Docker installation failed.\n# Please check the error message above."
exit 1
fi
}
install_docker
```