summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2024-10-11 21:08:02 +0900
committerhaturatu <taro@eyes4you.org>2024-10-11 21:08:02 +0900
commite1be2e0bbf0a83ec8e596b1a04ac6821cfdca0b8 (patch)
treec10c73d820b473041b29150dea504ceae98e0d70
parent17c1843fb7eb99899fe1c40bcd648e0053c3fc78 (diff)
add COMMIT_COMMENT
-rw-r--r--README.md2
-rw-r--r--lumebuild.sh5
2 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index c49bd34..e1119d4 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,7 @@ This script automates the following tasks:
- Lume static site generator
- Git
- WebP conversion tool (optional)
+[WebP convert scripts are in this repository of mine](https://github.com/haturatu/webpsh)
## Configuration
@@ -24,6 +25,7 @@ LUME_DIR="/your/lume/dir" # Path to your Lume project directory
SRC_DIR="$LUME_DIR/src" # Path to your Lume source directory
BUILD_DIR="site" # Path to your Lume output directory
WEBPSH="/your/webp/convert/path" # Path to WebP conversion script optional
+COMMIT_COMMENT="`date`" # Your fav commit comment
```
## Usage
diff --git a/lumebuild.sh b/lumebuild.sh
index 2445f6c..c0234ff 100644
--- a/lumebuild.sh
+++ b/lumebuild.sh
@@ -4,15 +4,16 @@ LUME_DIR="/your/lume/dir"
SRC_DIR="$LUME_DIR/src"
BUILD_DIR="site"
WEBPSH="/your/webp/convert/path"
+COMMIT_COMMENT="`echo "Memory" && free -h | head -2 | awk '{print $(NF-5)"," $(NF-4)"," $(NF-3)}' | column -t -s ","`"
export DENO_INSTALL="/home/$USER/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
cd "$SRC_DIR" || exit
-ls "$SRC_DIR/.git" || git init || exit
+ls "$SRC_DIR/.git" || git init || exit
git add . || exit
-git commit -m "`date`"
+git commit -m "$COMMIT_COMMENT"
if [ $? -eq 0 ]; then
$WEBPSH