mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Make bash script work when called in other dirs
This commit is contained in:
parent
5fed22405b
commit
563713b4b8
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,12 @@
|
|||
|
||||
# NOTE run `bash www/build.sh` to cache local copy of fonts, and repl assets etc
|
||||
|
||||
## Get the directory of the currently executing script
|
||||
DIR="$(dirname "$0")"
|
||||
|
||||
# Change to that directory
|
||||
cd "$DIR" || exit
|
||||
|
||||
rm -rf dist/
|
||||
cp -r ../build dist/
|
||||
mkdir -p dist/wip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue