From 8fe37fb41f079b10f0d2eda8ece9505d7222ec81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 10:30:15 +0100 Subject: [PATCH] Minor change to an elif --- qsgen2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index a0fc16f..5eae1c4 100755 --- a/qsgen2 +++ b/qsgen2 @@ -431,7 +431,7 @@ function _blogs() { blog_url="${blog_dir}/${blog_index}.html" # Regular blog creation process - if [[ -z "${mode}" ]]; then + if [[ -z ${mode} ]]; then for blog in "${make_blog_array[@]}"; do if (${debug}) echo "_blogs: Processing ${blog}" @@ -460,7 +460,7 @@ function _blogs() { # Write to file echo "${blog_content}" > "${www_root}${blog_url}" - elif [[ ${mode} || ${mode} != "" ]]; then + elif [[ ${mode} ]]; then # Export metadata mode if (${debug}) echo "_blogs: Exporting metadata for ${blog}" export BLOG_SDATE="${sdate[@]}"