Skip to content

Commit

Permalink
Create directory structure if it is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
JonTheNiceGuy authored and finnp committed Mar 18, 2023
1 parent 76e2826 commit ba74360
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit ba74360

Please # to comment.