summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh10
1 files 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"