修复PID判断不精准导致获取运行状态出错的问题

This commit is contained in:
RikudouPatrickstar
2023-04-23 10:38:41 +08:00
parent ece1e280cf
commit ef57fa24a6
3 changed files with 12 additions and 12 deletions

View File

@@ -63,7 +63,7 @@ case "$1" in
tunfix) tunfix ;;
init) init ;;
*)
if [ -z $(pidof clash) ];then
if [ -z $(pidof $clashdir/clash) ];then
init
else
sleep 10