achar/install

23 lines
388 B
Plaintext
Raw Normal View History

#!/bin/bash
if [[ $(whoami) == "root" ]]; then
if [[ -f /usr/bin/achar ]]; then
echo "Something is already installed at /usr/bin/achar!"
exit 1
else
curl -o /usr/bin/achar https://git.zaks.web.za/zaks-web/achar/raw/branch/main/achar
chmod +x /usr/bin/achar
fi
else
echo "Please run with root privilages (sudo) in order to install to /usr/bin"
exit 1
fi