From 306e5526a7c21dcd9efd07b8d7c899834e140d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 30 Jan 2024 20:31:54 +0100 Subject: portage --- root/posodobi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'root') diff --git a/root/posodobi.sh b/root/posodobi.sh index 510bf17..fd52007 100755 --- a/root/posodobi.sh +++ b/root/posodobi.sh @@ -1,7 +1,7 @@ #!/bin/bash if grep "cron" <<<"$@" > /dev/null then - ps aux | grep posod[o]bi > /dev/null && exit 0 + [ `ps aux | grep posod[o]bi | wc -l` -gt 1 ] && { echo posodobi.sh že teče. takole:; ps aux | grep posod[o]bi; exit 0; } i=`sed s,^./,,g <<<$0` t=`mktemp -p "" $i.XXX.html` status=$? -- cgit v1.2.3