整理代码

This commit is contained in:
Olia Lisa 2025-11-20 18:09:56 +08:00
parent 99e53a1680
commit 955e3d7cb6

View File

@ -13,9 +13,8 @@ run() {
# 检查bash是否安装
check_bash_installed
local password=$(jq -r '.auth.password' "$config_dir/config.json")
# 如果配置未初始化
local password=$(jq -r '.auth.password' "$config_dir/config.json")
if [ "$password" = "你的密码" ]; then
# 执行初始化脚本
bash "$script_dir/init.sh"