setup-keter: Exit on missing lsb_release. Fixes #179

This commit is contained in:
Niklas Hambüchen 2018-06-24 16:18:48 +02:00
parent 4a375ca991
commit c497035775

View File

@ -4,8 +4,10 @@ set -o errexit -o nounset -o xtrace
# Quick start:
# wget -O - https://raw.github.com/snoyberg/keter/master/setup-keter.sh | bash -ex
LSB_RELEASE=$(lsb_release -sc)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
echo "deb http://download.fpcomplete.com/ubuntu \"$(lsb_release -sc)\" main"|sudo tee /etc/apt/sources.list.d/fpco.list
echo "deb http://download.fpcomplete.com/ubuntu \"${LSB_RELEASE}\" main"|sudo tee /etc/apt/sources.list.d/fpco.list
sudo apt-get update
sudo apt-get -y install postgresql stack zlib1g-dev