mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-13 00:41:20 +00:00
~脚本进行大量拆分和优化
This commit is contained in:
8
scripts/libs/check_target.sh
Normal file
8
scripts/libs/check_target.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
if echo "$crashcore" | grep -q 'singbox'; then
|
||||
target=singbox
|
||||
format=json
|
||||
else
|
||||
target=clash
|
||||
format=yaml
|
||||
fi
|
||||
core_config="$CRASHDIR/${format}s/config.$format"
|
||||
Reference in New Issue
Block a user