From 90f779d89f087cc4bb0fde68a25d4203d1213ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 10 Feb 2024 22:13:14 +0100 Subject: [PATCH] Fix syntax error in qsgen2 script --- qsgen2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 14172e7..e640751 100755 --- a/qsgen2 +++ b/qsgen2 @@ -511,7 +511,7 @@ function _pages() { if (${debug}) _msg debug "_pages: Finding page_title" if [[ ${generator} == "native" ]]; then # Use Zsh built in functions to find page_title - [[ "${page_content}" =~ ^#title=(.*) ]]; then + if [[ "${page_content}" =~ ^#title=(.*) ]]; then local page_title=$match[1] #local page_title=$( echo ${page_content} | head -2 | grep \#title | cut -d= -f2 ) elif [[ ${generator} == "markdown" ]]; then