Skip to content

Commit

Permalink
~修改配置文件检测逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
juewuy committed Mar 8, 2024
1 parent 37ba045 commit 8dc9059
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,11 @@ get_core_config(){ #下载内核配置文件
fi
else
Https=""
[ "$crashcore" = singbox -o "$crashcore" = singboxp ] && check_singbox_config || check_clash_config
if [ "$crashcore" = singbox -o "$crashcore" = singboxp ];then
check_singbox_config
else
check_clash_config
fi
#如果不同则备份并替换文件
if [ -s $core_config ];then
compare $core_config_new $core_config
Expand Down

0 comments on commit 8dc9059

Please sign in to comment.