mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
Check if git is installed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user