From a15b1988f135022d99d3cb5b724fb1b1ad2cb40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Thu, 9 Jan 2025 04:23:26 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20install.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index 4751472..1afbfde 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -2,7 +2,7 @@ # 确保脚本以root用户运行 if [ "$EUID" -ne 0 ]; then - echo "Please run as root or with sudo." + echo "请以root用户运行或使用sudo" exit fi @@ -21,11 +21,11 @@ if [ -f /etc/debian_version ]; then # 读取Debian版本号 debian_version=$(cat /etc/debian_version) - echo "Detected Debian system with version: $debian_version" + echo "检测到Debian系统,版本为: $debian_version" # 检测是否是Raspberry Pi if grep -q 'Raspberry Pi' /proc/cpuinfo; then - echo "This is a Raspberry Pi." + echo "这是树莓派Raspberry Pi" # 根据版本号执行不同的操作 case $debian_version in 11*)