v1.0.0beta17.8
~优化了保存节点信息的方式,节省存储消耗 ~修复了部分情况下订阅链接/配置链接丢失的bug ~修复了部分情况下会连续下载两次核心的bug
This commit is contained in:
@@ -37,7 +37,9 @@ setconfig(){
|
||||
echo "${1}=${2}" >> $configpath
|
||||
}
|
||||
compare(){
|
||||
if command -v cmp >/dev/null 2>&1; then
|
||||
if [ ! -f $1 -o ! -f $2 ];then
|
||||
return 1
|
||||
elif command -v cmp >/dev/null 2>&1;then
|
||||
cmp -s $1 $2
|
||||
else
|
||||
[ "$(cat $1)" = "$(cat $2)" ] && return 0 || return 1
|
||||
|
||||
Reference in New Issue
Block a user