From 0949ed30d97500dc278b49b59705a4e058662360 Mon Sep 17 00:00:00 2001 From: darkclip Date: Sat, 2 Sep 2023 07:43:21 +0800 Subject: [PATCH] update --- cf-watch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cf-watch.sh b/cf-watch.sh index 11ae6d24..b3530099 100755 --- a/cf-watch.sh +++ b/cf-watch.sh @@ -1,5 +1,10 @@ dev=$1; +pids=$(pgrep -afl $0) +if [ "$(echo $pids|awk '{print $1}')" != "$$" ]; then + exit; +fi + get_rnd(){ echo $(od -An -N2 -i /dev/random); return $?;