Skip to content

Commit

Permalink
feat: add clear task to fix unexpected error
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Nov 14, 2022
1 parent 09f22d1 commit d3e0097
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
5 changes: 1 addition & 4 deletions qinglong/DefaultTasks/bili_dev_task_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ echo -e "\nrepo目录: $dir_repo"
bili_repo_dir="$(find $dir_repo -type d -iname $bili_repo | head -1)"
echo -e "bili仓库目录: $bili_repo_dir\n"

echo -e "清理缓存...\n"
cd $bili_repo_dir
find . -type d -name "bin" -exec rm -rf {} +
find . -type d -name "obj" -exec rm -rf {} +
cd $bili_repo_dir
17 changes: 17 additions & 0 deletions qinglong/DefaultTasks/bili_dev_task_tryFix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# new Env("bili尝试修复异常[dev先行版]")
# cron 0 0 1 1 * bili_dev_task_tryFix.sh

dir_shell=$QL_DIR/shell
. $dir_shell/share.sh

bili_repo="raywangqvq_bilibilitoolpro_develop"

echo -e "\nrepo目录: $dir_repo"
bili_repo_dir="$(find $dir_repo -type d -iname $bili_repo | head -1)"
echo -e "bili仓库目录: $bili_repo_dir\n"

echo -e "清理缓存...\n"
cd $bili_repo_dir
find . -type d -name "bin" -exec rm -rf {} +
find . -type d -name "obj" -exec rm -rf {} +
5 changes: 1 addition & 4 deletions qinglong/DefaultTasks/bili_task_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ echo -e "\nrepo目录: $dir_repo"
bili_repo_dir="$(find $dir_repo -type d -iname $bili_repo | head -1)"
echo -e "bili仓库目录: $bili_repo_dir\n"

echo -e "清理缓存...\n"
cd $bili_repo_dir
find . -type d -name "bin" -exec rm -rf {} +
find . -type d -name "obj" -exec rm -rf {} +
cd $bili_repo_dir
17 changes: 17 additions & 0 deletions qinglong/DefaultTasks/bili_task_tryFix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# new Env("bili尝试修复异常")
# cron 0 0 1 1 * bili_task_tryFix.sh

dir_shell=$QL_DIR/shell
. $dir_shell/share.sh

bili_repo="raywangqvq_bilibilitoolpro_develop"

echo -e "\nrepo目录: $dir_repo"
bili_repo_dir="$(find $dir_repo -type d -iname $bili_repo | head -1)"
echo -e "bili仓库目录: $bili_repo_dir\n"

echo -e "清理缓存...\n"
cd $bili_repo_dir
find . -type d -name "bin" -exec rm -rf {} +
find . -type d -name "obj" -exec rm -rf {} +

0 comments on commit d3e0097

Please sign in to comment.