Files

10 lines
292 B
Bash

#!/bin/bash
# Wrapper script - sources .env and runs generate.sh
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Source .env if it exists
[[ -f "$SCRIPT_DIR/.env" ]] && source "$SCRIPT_DIR/.env"
[[ -f "$HOME/bot/.env" ]] && source "$HOME/bot/.env"
exec "$SCRIPT_DIR/scripts/generate.sh" "$@"