From 4fb780e11d9a1b0a8eb475529dc6ffc2d74d78ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 09:30:13 +0100 Subject: [PATCH] Minor but annoy bug --- qsgen2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index 491353a..f0e8905 100755 --- a/qsgen2 +++ b/qsgen2 @@ -359,10 +359,12 @@ function _pages() { if [[ $( grep \#link ${pages_tpl} > /dev/null ) ]]; then echo "If #link is present, run _link: pages_tpl" page_content=$( _link "${pages_tpl}" ) - elif [[ $( grep \#showimg ${pages_tpl} > /dev/null ) ]]; then + fi + if [[ $( grep \#showimg ${pages_tpl} > /dev/null ) ]]; then echo "If #showimg is present, run _image: pages_tpl" page_content=$( _image "${pages_tpl}" ) - elif [[ $( grep \#ytvideo ${pages_tpl} > /dev/null ) ]]; then + fi + if [[ $( grep \#ytvideo ${pages_tpl} > /dev/null ) ]]; then echo "If #ytvideo is present, run _youtube: pages_tpl" page_content=$( _youtube "${pages_tpl}" ) fi