From dc876b71fcb2b2ce57bb313eef49a927d5e3e944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 29 Jan 2024 23:43:46 +0100 Subject: [PATCH] Debugging the write to disk --- qsgen2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index 5d56610..047368a 100755 --- a/qsgen2 +++ b/qsgen2 @@ -339,12 +339,14 @@ function _pages() { pages_tpl=$( _last_updated ${pages_tpl} ) # Run a cleanup if in case something was left out - #_cleanup ${pages_tpl} + _cleanup ${pages_tpl} # Always use lowercase for file names pages_title_lower=$( _file_to_lower "${pages_in_array}" ) # Write pages_tpl to disk echo "Writing ${www_root}/${pages_title_lower%.*}.html to disk." + echo ${pages_tpl} + exit echo "${pages_tpl}" > ${www_root}/${pages_title_lower%.*}.html # Look for links, images and videos and convert them if present. @@ -361,7 +363,7 @@ function _pages() { fi # Run a cleanup if in case something was left out - _cleanup ${www_root}/${pages_title_lower%.*}.html + # _cleanup ${www_root}/${pages_title_lower%.*}.html done