Skip to content

Commit

Permalink
Updated the install script to use just "curl" and "unzip" (fixes #64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Nov 12, 2021
1 parent 2e897ab commit 89ee96d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ cargo install mdbook-linkcheck

If you don't want to install from source (which often takes a while) you can
grab an executable from [GitHub Releases][releases] or use this line of
`curl`:
`curl` to download a release bundle and install it in the `./mdbook-linkcheck`
directory:

```console
curl -s https://api.github.com/repos/Michael-F-Bryan/mdbook-linkcheck/releases/latest \
| grep browser_download_url \
| grep $(rustc -Vv | grep host | cut -d' ' -f2) \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
mkdir -p mdbook-linkcheck && cd "$_" && \
curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip -o mdbook-linkcheck.zip && \
unzip "$_" && \
chmod +x mdbook-linkcheck && \
export PATH=$PWD:$PATH && \
cd ..
```

(note: you may need to replace the `x86_64-unknown-linux-gnu` with your
platform's target triple)

Next you'll need to update your `book.toml` to let `mdbook` know it needs to
use `mdbook-linkcheck` as a backend.

Expand Down

0 comments on commit 89ee96d

Please sign in to comment.