aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJefferson Julio <[email protected]>2021-06-02 23:50:55 -0300
committerJefferson Julio <[email protected]>2021-06-02 23:50:55 -0300
commitcd228ef5da0e11f9f28d615cc768392e424c5337 (patch)
tree411ee0d4f2c75ccb9db9e3891a1f4cf80a745079
parent7d773221e7711c4e534e89264c719b4cc5aabb1f (diff)
downloadblog.sh-master.tar.bz2
blog.sh-master.zip
bug, comment parsing must be before parse article becouse of if avaluation right afterHEADmaster
-rwxr-xr-xpages/article.sh4
1 files changed, 2 insertions, 2 deletions
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 <<ERR