From 12c414f17cc938f82917cc43dd8bc0e78b75600b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 23:26:31 +0100 Subject: [PATCH] OK --- qsgen2 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qsgen2 b/qsgen2 index 0002033..bddf771 100755 --- a/qsgen2 +++ b/qsgen2 @@ -340,13 +340,12 @@ function _pages() { # Run a cleanup if in case something was left out #_cleanup ${pages_tpl} - - # Write pages_tpl to disk - echo "Writing ${www_root}/${pages_in_array%.*}.html to disk." - + # Always use lowercase for file names pages_title_lower=$( _file_to_lower "${pages_in_array}" ) - echo "${pages_tpl}" > ${www_root}/${pages_in_array%.*}.html + # Write pages_tpl to disk + echo "Writing ${www_root}/${page_title_lower%.*}.html to disk." + echo "${pages_tpl}" > ${www_root}/${page_title_lower%.*}.html # Look for links, images and videos and convert them if present. if (${debug}) echo "_pages: Checking for #link, #showimg and #ytvideo in page_content"