get_peertube_videos/get_peertube_videos.sh

11 lines
367 B
Bash
Raw Permalink Normal View History

2024-11-19 10:54:20 +01:00
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ ! -d "${script_dir}/.venv" ]; then
python -m venv "$script_dir/.venv"
fi
# shellcheck disable=1091
source "$script_dir/.venv/bin/activate"
pip install -r "$script_dir/requirements.txt" > /dev/null
pip install "$script_dir/" > /dev/null
2024-11-19 11:20:20 +01:00
get_peertube_videos.py "${@}"