1
0
Files
ContentAutomation/docker-entrypoint.sh

18 lines
255 B
Bash

#!/usr/bin/env bash
set -euo pipefail
if [[ $# -eq 0 ]]; then
exec bash
fi
if [[ "$1" == "upload" ]]; then
shift
exec python -m content_automation.main "$@"
fi
if [[ "$1" == -* ]]; then
exec python -m content_automation.main "$@"
fi
exec "$@"