do not match own process lol
This commit is contained in:
parent
3bfa50113c
commit
861aa7fa0a
12
.local/bin/moodle-dl-update
Executable file
12
.local/bin/moodle-dl-update
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
MOODLE_DIR="/home/alex/eth/.moodle"
|
||||||
|
cd "$MOODLE_DIR"
|
||||||
|
echo "pgrepping"
|
||||||
|
pgrep -x moodle-dl
|
||||||
|
if ! pgrep -x moodle-dl; then
|
||||||
|
echo "nothing"
|
||||||
|
[ -f running.lock ] && rm running.lock
|
||||||
|
moodle-dl >/dev/null 2>&1
|
||||||
|
else
|
||||||
|
echo "something"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user