This commit is contained in:
Faker 2024-08-20 18:14:38 +08:00
parent b3a738f531
commit 84f8f6a1cf
2 changed files with 1 additions and 3 deletions

View File

@ -14,6 +14,7 @@ git_shell_path=$dir_config/gitfix.sh
# 控制是否执行变量
read -p "是否执行全部操作,输入 1 即可执行全部,输入 0 则跳出,回车默认和其他可进行选择性操作,建议初次配置输入 1" all
if [ "${all}" = 1 ]; then

View File

@ -117,9 +117,6 @@ set_default_extra() {
CollectedRepo=${CollectedRepo:-"4"}
sed -i "s/CollectedRepo=(4)/CollectedRepo=(${CollectedRepo})/g" $extra_shell_path
sed -i "s/OtherRepo=()/OtherRepo=(${OtherRepo})/g" $extra_shell_path
echo -e "Ninja\n###1默认启动并自动更新\n###2未修改容器映射的请勿运行否则会出现青龙打不开或者设备死机等不良后果映射参考 https://github.com/MoonBegonia/ninja#%E5%AE%B9%E5%99%A8%E5%86%85"
read -p "Ninja="on" ##up为更新on为启动down为不运行请输入您的设置默认运行 up/on/down" Ninja
sed -i "s/Ninja=\"on\"/Ninja=\"${Ninja}\"/" $extra_shell_path
}
# 将 ql extra 添加到定时任务
add_ql_extra() {