fix bug
This commit is contained in:
parent
b5f20b9aac
commit
a2da384dfd
@ -14,8 +14,8 @@ run() {
|
|||||||
check_bash_installed
|
check_bash_installed
|
||||||
|
|
||||||
# 如果配置没有创建
|
# 如果配置没有创建
|
||||||
if [ ! -e "$config_dir/../config.json" ]; then
|
if [ ! -e "$config_dir/config.json" ]; then
|
||||||
touch "$config_dir/../config.json"
|
touch "$config_dir/config.json"
|
||||||
fi
|
fi
|
||||||
local password=$(jq -r '.auth.password' "$config_dir/config.json")
|
local password=$(jq -r '.auth.password' "$config_dir/config.json")
|
||||||
if [ ! -s "$config_dir/config.json" ] || [ "$password" = "你的密码" ]; then
|
if [ ! -s "$config_dir/config.json" ] || [ "$password" = "你的密码" ]; then
|
||||||
@ -29,4 +29,4 @@ run() {
|
|||||||
bash "$script_dir/print_share_link.sh"
|
bash "$script_dir/print_share_link.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
run # 启动容器
|
run # 启动容器
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user