Make sure directory exist

This commit is contained in:
Stig-Ørjan Smelror 2024-01-30 11:22:12 +01:00
parent 227d4fbfb2
commit e8760ba74d

4
qsgen2
View File

@ -475,8 +475,8 @@ function _blogs() {
blog_content="$(_last_updated "${blog_content}")"
# Create directory if it doesn't exist
if (${debug}) echo "_blogs: Creating ${blog_dir}"
[[ ! -d "${www_root}${blog_dir}" ]] && mkdir -p "${www_root}${blog_dir}"
if (${debug}) echo "_blogs: Creating directoty ${www_root}/${blog_dir}"
[[ ! -d "${www_root}/${blog_dir}" ]] && mkdir -p "${www_root}/${blog_dir}"
# Write to file
if (${debug}) echo "_blogs: Writing ${blog} to disk: ${www_root}${blog_url}"