dotfiles/.local/bin/moodle-dl-update

13 lines
238 B
Plaintext
Raw Normal View History

2023-10-31 13:26:39 +01:00
#!/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