From 8fc27973f8fa4812271e63fcf76f5588f6e1d160 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 21 Mar 2024 11:31:48 +0000 Subject: allow build to be executed from anywhere --- build.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index d0b8a2e..de5def5 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,10 @@ #!/bin/sh -[ -d dist ] && rm -r dist -mkdir dist +script="$0" +path="$(dirname $(realpath "$script"))" +dist="$path/dist" +site="$path/site" -shblg -i site -o dist +[ ! -d "$dist" ] && mkdir "$dist" + +shblg -i "$site" -o "$dist" -- cgit v1.2.1