diff --git a/docs/install.md b/docs/install.md index 79b05de..d4d2743 100644 --- a/docs/install.md +++ b/docs/install.md @@ -6,6 +6,18 @@ brew install kha7iq/tap/pingme ``` +## Shell Script +By default pingme is going to be installed at `/usr/bin/` sudo is requried for this operation. + +If you would like to provide a custom install path you can do so as input to script. i.e `./install.sh $HOME/bin` +```bash +curl -s https://raw.githubusercontent.com/kha7iq/pingme/master/install.sh | sudo sh +``` +or +```bash +curl -sL https://bit.ly/installpm | sudo sh +``` + ## Linux * AUR @@ -13,21 +25,18 @@ brew install kha7iq/tap/pingme yay -S pingme-bin ``` -* Binary +## Manual ```bash +# Chose desired version, architecture & target os export PINGME_VERSION="0.2.4" -wget -q https://github.com/kha7iq/pingme/releases/download/v${PINGME_VERSION}/pingme_Linux_x86_64.tar.gz && \ -tar -xf pingme_Linux_x86_64.tar.gz && \ +export ARCH="x86_64" +export OS="Linux" +wget -q https://github.com/kha7iq/pingme/releases/download/v${PINGME_VERSION}/pingme_${OS}_${ARCH}.tar.gz && \ +tar -xf pingme_${OS}_${ARCH}.tar.gz && \ chmod +x pingme && \ sudo mv pingme /usr/local/bin/pingme ``` -## Go Get - -```bash -go get -u github.com/kha7iq/pingme -``` - ## Windows ```powershell