~修复任务列表显示
~修复小闪存模式singbox运行命令出错的bug
This commit is contained in:
juewuy
2024-01-14 19:22:24 +08:00
parent 8b73700c9e
commit 155ae9e9ea
6 changed files with 5 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -5,4 +5,4 @@ meta_v=v1.18.0
singbox_v=1.8.0 singbox_v=1.8.0
GeoIP_v=20240107 GeoIP_v=20240107
versionsh=1.8.7 versionsh=1.8.7b

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Copyright (C) Juewuy # Copyright (C) Juewuy
version=1.8.7 version=1.8.7b
setdir(){ setdir(){
dir_avail(){ dir_avail(){

View File

@@ -1410,9 +1410,12 @@ core_check(){
chmod +x ${BINDIR}/core.new 2>/dev/null chmod +x ${BINDIR}/core.new 2>/dev/null
if [ "$crashcore" = singbox ];then if [ "$crashcore" = singbox ];then
core_v=$(${TMPDIR}/core.new version 2>/dev/null | grep version | awk '{print $3}') core_v=$(${TMPDIR}/core.new version 2>/dev/null | grep version | awk '{print $3}')
COMMAND='"$BINDIR/CrashCore run -D $BINDIR -c $TMPDIR/config.json"'
else else
core_v=$(${TMPDIR}/core.new -v 2>/dev/null | sed 's/ linux.*//;s/.* //') core_v=$(${TMPDIR}/core.new -v 2>/dev/null | sed 's/ linux.*//;s/.* //')
COMMAND='"$BINDIR/CrashCore -d $BINDIR -f $TMPDIR/config.yaml"'
fi fi
setconfig COMMAND "$COMMAND" ${CRASHDIR}/configs/command.env
if [ -z "$core_v" ];then if [ -z "$core_v" ];then
rm -rf ${TMPDIR}/core.new rm -rf ${TMPDIR}/core.new
logger "核心下载失败,请重新运行或更换安装源!" 31 logger "核心下载失败,请重新运行或更换安装源!" 31