cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

1b5869f8a857c5bd5e6230a225ecbe6671564116

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2024-07-29T02:22:23Z

suppress excessive build script output
 build.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/build.sh b/build.sh
index c4d4f01..5f1aed0 100755
--- a/build.sh
+++ b/build.sh
@@ -5,20 +5,21 @@ read answer
 
 if [ "$answer" != "${answer#[Yy]}" ] ; then
 	if [ "$ENV" == "prod" ]; then
-		echo "Environment = Production"                  && \
+		echo "Environment: Production"                   && \
 		rm -rf .build/*                                  && \
-		emacs --script publish.el			 && \
+		emacs --script publish.el &>/dev/null		 && \
 		pandoc -f org -t html readme.org  -o readme.html && \
 		hut git update --readme readme.html --repo          \
 		https://git.sr.ht/\~cyborg/cleberg.net           && \
-		rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/
+		rsync -r --delete-before .build/*		    \
+		ubuntu:/var/www/cleberg.net/
 	else
-		echo "Environment = Development"             && \
+		echo "Environment: Development"              && \
 		rm -rf .build/*                              && \
 		emacs --script publish.el		     && \
 		cd .build/				     && \
 		python3 -m http.server
 	fi
 else
-	echo No
+	echo "Please update the 'Recent Blog Posts' section before publishing!"
 fi