mirror of
https://github.com/hanzoskill/youtube-instant-article.git
synced 2026-10-30 21:03:26 +00:00
10 lines
292 B
Bash
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" "$@"
|