summaryrefslogtreecommitdiffstats
path: root/root/posodobi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'root/posodobi.sh')
-rwxr-xr-xroot/posodobi.sh2
1 files changed, 1 insertions, 1 deletions
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=$?