dotfiles/.local/bin/moodle-dl-update
2023-10-31 13:27:09 +01:00

8 lines
163 B
Bash
Executable File

#!/bin/sh
MOODLE_DIR="/home/alex/eth/.moodle"
cd "$MOODLE_DIR"
if ! pgrep -x moodle-dl; then
[ -f running.lock ] && rm running.lock
moodle-dl >/dev/null 2>&1
fi