Create necessary directories before generating files.
This commit is contained in:
parent
b15e1c4a98
commit
2c62798f69
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ function generate_file() {
|
|||
if ! [ "$current_file_name" ]; then
|
||||
echo "$file_name"
|
||||
elif [ "$current_file_name" == "$file_name" ]; then
|
||||
mkdir -p "$(dirname "$file_name")"
|
||||
"${generate_command[@]}" > "$file_name"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue