gcc can also be missing on deb distros

Add a check for gcc when apt-get exists
so we can install it if it's missing.

Change-Id: Ib7fbe63bf4c71aa569110d6f63e26b6bff4e89ff
This commit is contained in:
stephane 2015-09-23 16:23:54 -07:00
parent e51de22084
commit 1f2c7e9b27

View File

@ -9,6 +9,9 @@ ANSIBLE_GIT_URL=${ANSIBLE_GIT_URL:-https://github.com/ansible/ansible.git}
ANSIBLE_GIT_BRANCH=${ANSIBLE_GIT_BRANCH:-stable-1.9}
if [ -x '/usr/bin/apt-get' ]; then
if ! $(gcc -v &>/dev/null); then
sudo -H apt-get -y install gcc
fi
if ! $(git --version &>/dev/null) ; then
sudo -H apt-get -y install git
fi