mirror of
https://github.com/kxgx/2.13-Ink-screen-clock.git
synced 2026-03-15 07:03:16 +08:00
更新 install.sh
This commit is contained in:
@@ -16,9 +16,11 @@ DEBUG=false
|
||||
# 解析命令行参数
|
||||
while [ "$#" -gt 0 ]; do
|
||||
case "$1" in
|
||||
--zh)
|
||||
DEFAULT_LANG="zh_CN.UTF-8" # 当使用 --zh 参数时,设置默认语言为中文
|
||||
;;
|
||||
--cn)
|
||||
USE_CN_MIRROR=true
|
||||
DEFAULT_LANG="zh_CN.UTF-8" # 当使用 --cn 参数时,设置默认语言为中文
|
||||
;;
|
||||
--debug)
|
||||
DEBUG=true
|
||||
@@ -125,7 +127,7 @@ setup_service() {
|
||||
cd ~
|
||||
git clone $INK_SCREEN_CLOCK_REPO_URL
|
||||
if [ $? -eq 0 ]; then
|
||||
# 假设服务文件在仓库的 service 文件夹下
|
||||
# 假设服务文件在仓库的 bin 文件夹下
|
||||
SERVICE_PATH="raspi_e-paper.service"
|
||||
SERVICE_FILE_PATH="$HOME/2.13-Ink-screen-clock/bin/$SERVICE_PATH"
|
||||
if [ -f "$SERVICE_FILE_PATH" ]; then
|
||||
|
||||
Reference in New Issue
Block a user