]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
takora: better Ubuntu detection
authorKen Dreyer <kdreyer@redhat.com>
Thu, 27 Aug 2015 22:12:53 +0000 (16:12 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 27 Aug 2015 22:15:32 +0000 (16:15 -0600)
This removes Debian for now, but it's ok, because we don't build for
Debian (only Trusty).

takora/build/build

index 341de2dec0d20a5384137d74f779960e59232d90..7863b173ddbea83228de6bd52cc4ddfa015ef0dd 100644 (file)
@@ -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