diff --git a/new-comment.sh b/new-comment.sh index c364471c..0a92ed0e 100644 --- a/new-comment.sh +++ b/new-comment.sh @@ -69,7 +69,7 @@ COMMENTS_DIR=${COMMENTS_DIR_FORMAT//@post-slug/$POST_SLUG} # Create directory if does not exist if [ ! -d "$COMMENTS_DIR" ]; then - mkdir ${COMMENTS_DIR} + mkdir -p ${COMMENTS_DIR} fi COMMENT_TIMESTAMP=`date +%Y%m%d%H%M%S` @@ -92,4 +92,4 @@ git config user.email ${GIT_EMAIL} git pull ${GIT_ORIGIN} master git add ${COMMENT_FILE} git commit -m "${COMMIT_MESSAGE}" -git push --quiet ${GIT_ORIGIN} master > /dev/null 2>&1 \ No newline at end of file +git push --quiet ${GIT_ORIGIN} master > /dev/null 2>&1