diff --git a/entrypoint.sh b/entrypoint.sh index c977258..f5fd3ec 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ "$(dirname "$FILE_NAME")" != "." ] +then + mkdir -p "$(dirname "$FILE_NAME")" +fi if [[ -z "${FILE_BASE64}" ]]; then echo "Using FILE_DATA to write to $FILE_NAME" echo $FILE_DATA > "$FILE_NAME"