Check if git is installed

This commit is contained in:
2021-03-05 10:49:20 +00:00
parent a9760fa8cd
commit a6c7df9abb

View File

@@ -1,4 +1,11 @@
#!/bin/bash
which git > /dev/null
if [ $? -ne 0 ]; then
echo "Git isn't installed."
exit
fi
git clone https://github.com/nikdoof/dotfiles.git $HOME/.dotfiles > /dev/null
cd $HOME/.dotfiles/
for package in bin bash; do