freshrss2linkding/run.sh
2024-11-12 22:53:17 +01:00

15 lines
283 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
WORKING_DIR="${1:-.}"
cd "$WORKING_DIR" || exit
if [ ! -d "./venv/" ]; then
echo "This is script only works with a python virtual environment setup at $(pwd)/venv"
exit 1
fi
source ./venv/bin/activate
./venv/bin/python freshrss2linkding.py