Skip to content

Commit

Permalink
[Scripts] Check if it's a debian distribution or not (fixes #55).
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbestigrou committed Apr 29, 2014
1 parent 41f3bc7 commit 4d15dab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install.sh
Expand Up @@ -61,8 +61,13 @@ function install_vundle() {
function check_git() {
if [ "$(which git)" == "" ]
then
echo "Install git"
sudo apt-get install --force-yes --yes git-core
if [ -e /etc/debian_version ]
then
echo "Install git"
sudo apt-get install --force-yes --yes git-core
else
echo "You must install git"
fi
fi
}

Expand Down

0 comments on commit 4d15dab

Please sign in to comment.