v0.1 - First working and stable version.
This commit is contained in:
22
install
Normal file
22
install
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user