diff --git a/README.md b/README.md index f4c49dd..d6cbe75 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,15 @@ platforms. 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 custome install path you can do so by prviding it as input to scipt. i.e `./install.sh $HOME/bin` +```bash +curl -s https://raw.githubusercontent.com/kha7iq/pingme/master/install.sh | sudo sh +``` + ## Linux * AUR @@ -89,15 +98,20 @@ 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 ``` + + ### Windows ```powershell