修复web_save无法覆盖保存重置的节点 #383
This commit is contained in:
@@ -1030,6 +1030,8 @@ web_save(){
|
|||||||
if [ -s /tmp/clash_web_save_$USER ];then
|
if [ -s /tmp/clash_web_save_$USER ];then
|
||||||
compare /tmp/clash_web_save_$USER $clashdir/web_save
|
compare /tmp/clash_web_save_$USER $clashdir/web_save
|
||||||
[ "$?" = 0 ] && rm -rf /tmp/clash_web_save_$USER || mv -f /tmp/clash_web_save_$USER $clashdir/web_save
|
[ "$?" = 0 ] && rm -rf /tmp/clash_web_save_$USER || mv -f /tmp/clash_web_save_$USER $clashdir/web_save
|
||||||
|
else
|
||||||
|
rm -rf $clashdir/web_save
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
web_restore(){
|
web_restore(){
|
||||||
|
|||||||
Reference in New Issue
Block a user