Skip to content

Commit

Permalink
Installer support script.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 19, 2024
1 parent f2cefe1 commit 8823563
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions support/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

if dpkg -l | grep -q "^ii\s*git"; then
echo "[+] Git is already installed."
else
echo "[-] Git is not installed."
echo "[*] Installing git..."
apt install git -y
fi

git clone https://github.com/nthnn/zhivo.git --depth 1
echo "[*] Building Zhivo..."

cd zhivo && chmod +x ./build.sh && ./build.sh
echo "[+] Zhivo was successfully compiled!"

cp dist/zhivo /bin/zhivo
echo "[+] Zhivo is now installed on your system!"

cd .. && rm -rf zhivo
echo "[+] Build clean done"

0 comments on commit 8823563

Please sign in to comment.