mirror of https://github.com/statping/statping
first
parent
a5c43f6957
commit
decd9a2fc5
|
@ -0,0 +1 @@
|
|||
ok
|
|
@ -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!"
|
Loading…
Reference in New Issue