UNPKG

385 Bapplication/x-shView Raw
1#!/usr/bin/env bash
2
3# A script to download and install the latest version of the binary on Linux.
4
5VERSION=$(curl --silent "https://api.github.com/repos/stencila/dockter/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
6curl -sLO https://github.com/stencila/dockter/releases/download/$VERSION/dockter-linux-x64.tar.gz
7tar xvf dockter-linux-x64.tar.gz
8mv -f dockter ~/.local/bin/