From a68d8aa485aeab4acbde20a57d0260f1e641c94a Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Sat, 31 Mar 2018 01:25:55 -0700 Subject: [PATCH] install script Former-commit-id: a2dd83c0e393ae703a321c2f388fe3b5e7ed4dd3 [formerly a2dd83c0e393ae703a321c2f388fe3b5e7ed4dd3 [formerly 23a5e962162d1bc8a8ea90cc73eaf13d598dee1a [formerly 9d3677c06dc3c79ca366d8443566d513b707a4e5]]] Former-commit-id: d622895569d6967364c88399ff1cb719af33c6d9 Former-commit-id: d4c049ff6864faa58d0e1116661b73b89484b22a [formerly f7b7e0046c34415e8fc3a467af99a0b282d969c3] Former-commit-id: 3105d757a553501b1c32ff10515b092afc8f568d --- README.md | 3 +++ install.sh | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100755 install.sh diff --git a/README.md b/README.md index 347f5c0..f970f23 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ +[`cointop`](https://github.com/miguelmota/cointop) is a fast and tiny (~2mb) command-line interface application for viewing cryptocurrency stats and information in your terminal. The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop). + ## Install Make sure to have [golang](https://golang.org/) installed, then do: @@ -17,6 +19,7 @@ go install github.com/miguelmota/cointop ### Alternatively ``` +sudo ``` ## Usage diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..0493723 --- /dev/null +++ b/install.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if ! [ $(id -u) = 0 ]; then + echo "Must run as root" + exit 1 +fi + +curl https://github.com/miguelmota/cointop/raw/master/bin/cointop -o cointop +mv cointop /usr/local/bin/