Skip to content

Commit

Permalink
More robust command to find haskell-org-site executable path
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjaguarpaw committed Jan 4, 2022
1 parent 67722c9 commit ca653bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ name of the executable. From the builder directory, you can find the executable
path by running:

```
find dist-newstyle -name 'haskell-org-site' -type f
cabal v2-exec -- which haskell-org-site
```

Using that path, you can run the builder from the project root directory.
Expand Down
3 changes: 1 addition & 2 deletions buildAndWatch
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ function buildAndWatchWithoutNix() {

pushd builder
cabal v2-build
builderPath=$(find dist-newstyle -name 'haskell-org-site' -type f)
builder=$(cabal v2-exec -- which haskell-org-site)
popd
builder="./builder/${builderPath}"

if [[ ! -x "${builder}" ]]; then
cat <<EOF
Expand Down

0 comments on commit ca653bf

Please sign in to comment.