From cd228ef5da0e11f9f28d615cc768392e424c5337 Mon Sep 17 00:00:00 2001 From: Jefferson Julio Date: Wed, 2 Jun 2021 23:50:55 -0300 Subject: bug, comment parsing must be before parse article becouse of if avaluation right after --- pages/article.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages/article.sh') diff --git a/pages/article.sh b/pages/article.sh index b7270d8..c2398f7 100755 --- a/pages/article.sh +++ b/pages/article.sh @@ -1,9 +1,9 @@ #!/bin/bash -source $SCRIPT_DIR/utils/parse-article.sh - COMMENTS_FOLDER="$SCRIPT_DIR/pages/$REQUEST_URI/comments" source $SCRIPT_DIR/components/comments.sh +source $SCRIPT_DIR/utils/parse-article.sh + if [ $? -gt 0 ]; then STATUS=404 cat <