Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

tests OS version before trying to add Ubuntu Precise PPA #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ function install_deps_debian () {
# Sudo'd version of travis installation instructions
sudo apt-get update -qq
sudo apt-get install python-software-properties
sudo add-apt-repository --yes ppa:kalakris/cmake
if [[ $(source /etc/os-release;echo $ID) == "ubuntu" ]]; then
if [[ $(source /etc/os-release;echo $VERSION_ID) == "12.04" ]]; then
# If this is Ubuntu 12.04 install updated cmake
sudo add-apt-repository --yes ppa:kalakris/cmake
fi
fi
sudo apt-get update -qq
sudo apt-get -y install cmake \
check \
Expand Down