summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-02-19 00:22:14 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-02-19 02:00:26 -0800
commit8ec0811bac8817e2e824e344c902919ca03763ff (patch)
tree993c32ba066d5e1c522b46d3b9f700cb982829fe
parentf7cf8f93c17815b091d01d8023746c29e8e89095 (diff)
Added install.sh
-rw-r--r--README.md4
-rwxr-xr-xinstall.sh6
2 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 35b0ee4..56e51c8 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,9 @@ Go code compiles to a single executable so you just need to somehow get that int
Either manually download the latest release for your OS from the releases tab and move it into `/bin`, or run this command to do it for you:
- sudo ...
+```
+sudo curl -L ...
+```
If you install this way, starting gotop with the `-u` flag or pressing `u` in gotop will check to see if there is a newer version available and automatically update if so.
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..7ae6233
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+VERSION=v1.0
+
+curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/gotop > /usr/bin/gotop
+chmod +x /usr/bin/gotop