修复web_save无法覆盖保存重置的节点 #383

This commit is contained in:
Kwow
2023-04-27 00:05:24 +08:00
committed by GitHub
parent 7f35305a63
commit 53f5f7f0ba

View File

@@ -1030,6 +1030,8 @@ web_save(){
if [ -s /tmp/clash_web_save_$USER ];then
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
else
rm -rf $clashdir/web_save
fi
}
web_restore(){