移除创建空白配置文件的逻辑
This commit is contained in:
parent
584d6ba143
commit
7ddf0842bd
@ -52,12 +52,6 @@ create_config(){
|
|||||||
# 检查jq是否安装
|
# 检查jq是否安装
|
||||||
check_jq
|
check_jq
|
||||||
|
|
||||||
# 如果配置文件不存在, 创建空白配置文件
|
|
||||||
local config_file="$script_dir/../conf/config.json" # 配置文件绝对路径
|
|
||||||
if [ ! -e "$config_file" ]; then
|
|
||||||
touch "$config_file"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 如果配置文件已存在, 询问是否重新生成
|
# 如果配置文件已存在, 询问是否重新生成
|
||||||
if [ -e "$config_file" ]; then
|
if [ -e "$config_file" ]; then
|
||||||
local regenerate
|
local regenerate
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user