From 2efc2c4f5d3358772f3973bd1bd006f97a52c2a3 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: Sat, 8 Feb 2025 15:21:57 +0800 Subject: [PATCH] Update install.sh --- bin/install.sh | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index 1bffb47..27d7a10 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -212,6 +212,9 @@ install_Ink-screen-clock() { echo "克隆仓库失败" >&2 exit 1 fi + # 设置start.sh和clean.sh脚本的执行权限 + chmod +x "$HOME/2.13-Ink-screen-clock/bin/start.sh" + chmod +x "$HOME/2.13-Ink-screen-clock/bin/clean.sh" else echo "仓库文件夹已存在,跳过克隆" fi @@ -243,21 +246,6 @@ setup_service() { local service_file_path="$HOME/2.13-Ink-screen-clock/bin/$service_path" local service1_file_path="$HOME/2.13-Ink-screen-clock/bin/$service1_path" - # 检查墨水屏时钟仓库是否存在 - if [ ! -d "$HOME/2.13-Ink-screen-clock" ]; then - echo "正在克隆仓库" - cd ~ - if ! git clone -b $VERSION $INK_SCREEN_CLOCK_REPO_URL; then - echo "克隆仓库失败" >&2 - exit 1 - fi - # 设置start.sh和clean.sh脚本的执行权限 - chmod +x "$HOME/2.13-Ink-screen-clock/bin/start.sh" - chmod +x "$HOME/2.13-Ink-screen-clock/bin/clean.sh" - else - echo "仓库文件夹已存在,跳过克隆" - fi - # 检查服务文件是否存在 if [ -f "$service_file_path" ] && [ -f "$service1_file_path" ]; then # 检查服务是否已经启用