From a36907bfa5ae4b9c4b6178d5a2fbce6e49437bf5 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 01:04:07 +0800 Subject: [PATCH] Update install.sh --- bin/install.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index b170c28..3ced2e6 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -83,11 +83,16 @@ sudo apt install -y python3-gpiozero sudo pip3 install spidev borax pillow requests --break-system-packages ;; *) - echo "Unknown Debian version" - # 在这里处理未知版本的情况 - exit 0 - ;; - esac + echo "Unknown Debian version" + # 在这里处理未知版本的情况 + exit 0 + ;; + esac + else + echo "This is not a Raspberry Pi." + # 在这里处理非Raspberry Pi的情况 + exit 0 + fi else echo "This is not a Debian system." # 在这里处理非Debian系统的情况