diff options
author | haturatu <taro@eyes4you.org> | 2024-11-10 00:48:55 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-11-10 00:48:55 +0900 |
commit | b26a8d35895b92e33044a181554c3c9e2148a576 (patch) | |
tree | ef1d6ab4e0f6a8921050a597d4d96f085cbb9ce5 | |
parent | df41a26539503e34534fa47762084863ba351b66 (diff) |
add auto coment post
-rw-r--r-- | lumebuild.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lumebuild.sh b/lumebuild.sh index 3bc23f3..b6c58ce 100644 --- a/lumebuild.sh +++ b/lumebuild.sh @@ -21,6 +21,11 @@ git_commit() { git commit -m "$COMMIT_COMMENT" } +build() { + cd $LUME_DIR || exit + deno task lume --dest=$BUILD_DIR > /dev/null 2>&1 +} + git_commit if [ $? -eq 0 ]; then @@ -30,7 +35,7 @@ if [ $? -eq 0 ]; then grep "^comments:" "$(ls -tr | tail -1)" if [ $? -eq 0 ]; then - break + build else LAST_POST=`ls -tr | tail -1` POST_URL=`echo "$BLOG_URL/$POST_URL_DIR/$LAST_POST" | sed "s/\.md//g"` @@ -52,10 +57,7 @@ EOF` git_commit fi - # deno task lume --dest=$BUILD_DIR - cd $LUME_DIR || exit - deno task lume --dest=$BUILD_DIR > /dev/null 2>&1 + build else exit 1 fi - |