mirror of
https://git.davidovski.xyz/davidovski.git
synced 2024-08-15 00:43:29 +00:00
allow build to be executed from anywhere
This commit is contained in:
parent
d3ab8fe00d
commit
8fc27973f8
1 changed files with 7 additions and 3 deletions
10
build.sh
10
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"
|
||||
|
|
Loading…
Reference in a new issue