From 8544eaafd9125dce9072cc0f26afeaa8617c8756 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 6 Nov 2023 14:57:51 +0100 Subject: [PATCH] simplify build.sh --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 4407d39..80866ec 100755 --- a/build.sh +++ b/build.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash - set -ex + rm -fr public nix shell nixpkgs#zola -c zola build -nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm install -nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm run abridge +nix shell nixpkgs#nodejs_20 -c npm install +nix shell nixpkgs#nodejs_20 -c npm run abridge nix shell nixpkgs#zola -c zola build find public -type f -regextype posix-extended -regex '.*\.(htm|html|css|js|xml|xsl|txt|woff|woff2|svg|otf|eot|ttf)' -exec gzip --best -k -f {} \; rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/