#!/bin/bash # ============================================================================ # Manage the bot, in a browser: health, configuration and the album. # # ./web.sh --untagged # only items with no tags yet # ./web.sh --import ~/photos --untagged # import that folder first # ./web.sh --import ~/photos --dry-run # the report, changing nothing # # Sets up .venv on first run, so this works on a clone with nothing installed. # ============================================================================ set -euo pipefail REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly REPO_ROOT # shellcheck source=scripts/ensure_venv.sh source "${REPO_ROOT}/scripts/ensure_venv.sh" main() { ensure_venv "$REPO_ROOT" exec "${REPO_ROOT}/.venv/bin/python" "${REPO_ROOT}/tool/web.py" "$@" } main "$@"