summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-01-30 20:31:54 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2024-01-30 20:31:54 +0100
commit306e5526a7c21dcd9efd07b8d7c899834e140d79 (patch)
tree2310a77592113ec232db29322765c1fa920c0dbc /root
parentbtrfsv (diff)
downloadn-306e5526a7c21dcd9efd07b8d7c899834e140d79.tar
n-306e5526a7c21dcd9efd07b8d7c899834e140d79.tar.gz
n-306e5526a7c21dcd9efd07b8d7c899834e140d79.tar.bz2
n-306e5526a7c21dcd9efd07b8d7c899834e140d79.tar.lz
n-306e5526a7c21dcd9efd07b8d7c899834e140d79.tar.xz
n-306e5526a7c21dcd9efd07b8d7c899834e140d79.tar.zst
n-306e5526a7c21dcd9efd07b8d7c899834e140d79.zip
Diffstat (limited to 'root')
-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=$?