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