Do not use pwntools binutils ppa on xenial and later

This commit is contained in:
Michael Rodler 2017-08-17 16:03:45 +02:00 committed by Yan
parent e7b9d9273d
commit 770028c136

View file

@ -1,6 +1,11 @@
#!/bin/bash -ex
apt-get -y install software-properties-common
apt-add-repository -y ppa:pwntools/binutils
apt-get update
apt-get -y install binutils-.*-linux-gnu libffi-dev libssl-dev
apt-get install -y python2.7 python-pip python-dev git libssl-dev libffi-dev build-essential
if [[ $(lsb_release -rs | sed 's/\(..\)\.../\1/') -lt 16 ]]; then
echo "using pwntools binutils ppa for pre-xenial ubuntu"
apt-get -y install software-properties-common
apt-add-repository -y ppa:pwntools/binutils
apt-get update
apt-get -y install binutils-.*-linux-gnu
fi