From c1a5c0bb3d82af1c0f6dc7a28b9237f8b644af33 Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Sun, 25 Jul 2021 17:18:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=ADtest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/DlHelper.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Scripts/sh/DlHelper.sh b/Scripts/sh/DlHelper.sh index ecfff78..d190aa2 100644 --- a/Scripts/sh/DlHelper.sh +++ b/Scripts/sh/DlHelper.sh @@ -1,7 +1,8 @@ #!/bin/bash dir_sync=/root/Help/互助研究院\(1597522865\)/2021年07月 - +dir_git=/root/GitHub/VIP +Help=$dir_git/Scripts/sh/Helpcode2\.8 ( echo "resolve_username DlHelper_bot" @@ -11,6 +12,8 @@ dir_sync=/root/Help/互助研究院\(1597522865\)/2021年07月 echo "safe_quit" ) | docker exec -i telegram-cli telegram-cli -N -find $dir_sync -name "*code\.sh" -exec mv {} $dir_sync/code\.sh \; -find $dir_sync -name "*task_before\.sh" -exec mv {} $dir_sync/task_before\.sh \; -find $dir_sync -name "*config_sample\.sh" -exec mv {} $dir_sync/config_sample\.sh \; +cd $dir_git +git fetch --all && git reset --hard origin/master && git pull +find $dir_sync -name "*code\.sh" -exec mv {} $Help/code\.sh \; +find $dir_sync -name "*task_before\.sh" -exec mv {} $Help/task_before\.sh \; +find $dir_sync -name "*config_sample\.sh" -exec mv {} $Help/config_sample\.sh \;