1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

ubuntu's PPA uses long file names - eg ansible-ubuntu-ansible-xenial.list

This commit is contained in:
Jerry Vonau 2017-12-05 10:25:35 -06:00
parent b05f15a89e
commit 673044a723

View file

@ -61,7 +61,7 @@ else
echo "Please use pip package manager to update ansible"
exit 0
fi
if [ ! `grep -qi ansible /etc/apt/sources.list ] || [ ! -f /etc/apt/sources.list.d/ansible ]; then
if [[ ! `grep -qi ansible /etc/apt/sources.list` ]] || [ ! -f /etc/apt/sources.list.d/ansible* ]; then
echo "Upstream ansible source repo not found, please uninstall ansible and re-run this script"
exit 1
fi