From 3bd7177ad9e6568c43a67eee023aa5d34ee5c6a0 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 27 Aug 2015 16:12:53 -0600 Subject: [PATCH] takora: better Ubuntu detection This removes Debian for now, but it's ok, because we don't build for Debian (only Trusty). --- takora/build/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/takora/build/build b/takora/build/build index 341de2de..7863b173 100644 --- a/takora/build/build +++ b/takora/build/build @@ -3,9 +3,11 @@ echo "BRANCH: $BRANCH" cd $WORKSPACE/takora +. /etc/os-release + DEBIAN=0 -if [ $Dist = 'trusty' -o $Dist = 'precise' -o $Dist = 'wheezy' ] ; then +if [[ "$ID" -eq 'Ubuntu' ]] ; then DEBIAN=1 fi -- 2.39.5