#!/usr/bin/env bash OS=osx ARCH=x64 if [ `getconf LONG_BIT` = "64" ] then ARCH=x64 else ARCH=x32 fi unameOut="$(uname -s)" case "${unameOut}" in Linux*) OS=linux;; Darwin*) OS=osx;; CYGWIN*) OS=windows;; MINGW*) OS=windows;; *) OS="UNKNOWN:${unameOut}" esac echo " Installing for $OS $ARCH..." FILE="https://repo.com/tag/statup-$OS-$ARCH" curl -sS $FILE -o statup chmod +x statup mv statup /usr/local/bin/ echo " statup has been successfully installed!"