forked from LiveCarta/ContentAutomation
Implemented content upload app with tests and pre-commit hooks
This commit is contained in:
17
docker-entrypoint.sh
Normal file
17
docker-entrypoint.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user