qsgen2: Cache files also need config file

This commit is contained in:
Stig-Ørjan Smelror 2024-02-04 14:18:55 +01:00
parent 954f18e0fb
commit c1d542d6fe

8
qsgen2
View File

@ -36,10 +36,6 @@ function include () {
# Including some colors to the script # Including some colors to the script
include common/colors include common/colors
# Define cache files for blogs and pages
blog_cache_file="${project_dir}/.blog_cache"
pages_cache_file="${project_dir}/.pages_cache"
echo "${magenta}${blue_bg} ${QSGEN} ${end}${white}${blue_bg}${VERSION} ${end}" echo "${magenta}${blue_bg} ${QSGEN} ${end}${white}${blue_bg}${VERSION} ${end}"
_add_site() { _add_site() {
@ -129,6 +125,10 @@ if (${debug}); then
done done
fi fi
# Define cache files for blogs and pages
blog_cache_file="${project_dir}/.blog_cache"
pages_cache_file="${project_dir}/.pages_cache"
case "$1" in case "$1" in
add) add)
if [[ $# -eq 3 ]]; then if [[ $# -eq 3 ]]; then