diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | lumebuild.sh | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -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 |