Files
sufw-taetigkeitsnachweise/0_application/coldrun.command
T
2026-06-30 15:34:47 +02:00

28 lines
799 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -euo pipefail
# Doppelklickbares Cold-Run-Script für macOS
# Nimmt automatisch die erste Input-Datei + erstes Template und erzeugt
# einen Tätigkeitsnachweis für die erste gelistete Person – ohne GUI.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
VENV_DIR=".venv"
if [[ ! -x "$VENV_DIR/bin/python" ]]; then
echo "[FEHLER] Virtuelle Umgebung nicht gefunden."
echo "Bitte zuerst start.command ausführen, um das Projekt einzurichten."
read -p "Drücke Enter zum Beenden..."
exit 1
fi
echo "[INFO] Stelle sicher, dass Abhängigkeiten installiert sind…"
"$VENV_DIR/bin/pip" install -r requirements.txt --quiet 2>/dev/null || true
echo ""
"$VENV_DIR/bin/python" coldrun.py
echo ""
read -p "Drücke Enter zum Beenden..."