Skip to content

Commit

Permalink
added check for output folder mount
Browse files Browse the repository at this point in the history
  • Loading branch information
samidbb committed Jan 4, 2024
1 parent 3cec20e commit 58de885
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/scaffolding/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
scripts_path="/scripts"
source_module_path="/input"

if [ ! -d "/output" ]; then
echo "output folder does not exist"
exit 1
fi

# TERRAFORM DOCS
output_json_file="/tmp/doc.json"

Expand All @@ -27,6 +32,8 @@ if [ -z "$(ls -a $source_module_path)" ]; then
echo "empty $source_module_path"
exit 1
fi


# TODO: CHECK FOR output folder mount

# 1) Generate docs for all modules in a repo
Expand Down

0 comments on commit 58de885

Please sign in to comment.