From decd9a2fc59ae2f0e6666917e5748f8bca7db76e Mon Sep 17 00:00:00 2001 From: Hunter Long <Info@socialeck.com> Date: Sat, 9 Jun 2018 18:39:19 -0700 Subject: [PATCH] first --- docs/index.html | 1 + docs/install.sh | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docs/index.html create mode 100755 docs/install.sh diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..b5754e20 --- /dev/null +++ b/docs/index.html @@ -0,0 +1 @@ +ok \ No newline at end of file diff --git a/docs/install.sh b/docs/install.sh new file mode 100755 index 00000000..ced7520a --- /dev/null +++ b/docs/install.sh @@ -0,0 +1,23 @@ +#!/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!" \ No newline at end of file