Skip to content

Commit

Permalink
Make build.sh work from arbitrary directories (#153)
Browse files Browse the repository at this point in the history
I keep trying to run it from inside website
  • Loading branch information
illicitonion authored Jan 24, 2024
1 parent 660d3e8 commit 241b3f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash -eu

SCRIPT_DIR="$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}" && cd .. && pwd)"

cd "${REPO_ROOT}"

case "$(uname)" in
Darwin)
sed_i=("sed" "-i" "")
Expand Down

0 comments on commit 241b3f5

Please sign in to comment.