1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash VERSION=v1.0 download() { curl -L https://github.com/cjbassi/gotop/releases/download/$VERSION/${1} > /usr/bin/gotop chmod +x /usr/bin/gotop } arch=$(uname -sm) case "$arch" in Linux\ *64) download gotop-linux_amd64 ;; esac