UNPKG

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