1 |
|
2 |
|
3 | # A script to download and install the latest version of the binary on MacOS.
|
4 |
|
5 | VERSION=$(curl --silent "https://api.github.com/repos/stencila/dockter/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
6 | curl -sLO https://github.com/stencila/dockter/releases/download/$VERSION/dockter-macos-x64.tar.gz
|
7 | tar xvf dockter-macos-x64.tar.gz
|
8 | sudo mv dockter /usr/local/bin/
|