Skip to content

Commit

Permalink
Make build.sh work from arbitrary directories
Browse files Browse the repository at this point in the history
I keep trying to run it from inside website
  • Loading branch information
illicitonion committed Jan 2, 2024
1 parent a5dd989 commit b99c547
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 b99c547

Please sign in to comment.