Mercurial > hg
changeset 21642:76a347bcdb33
docker: check for docker.io first
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 29 May 2014 16:01:39 -0700 |
parents | 977e5bd6eb76 |
children | 75ff093d2763 |
files | contrib/dockerrpm |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/dockerrpm Tue May 20 04:07:58 2014 +0200 +++ b/contrib/dockerrpm Thu May 29 16:01:39 2014 -0700 @@ -3,10 +3,10 @@ BUILDDIR=$(dirname $0) ROOTDIR=$(cd $BUILDDIR/..; pwd) -if which docker >> /dev/null ; then +if which docker.io >> /dev/null ; then + DOCKER=docker.io +elif which docker >> /dev/null ; then DOCKER=docker -elif which docker.io >> /dev/null ; then - DOCKER=docker.io fi $DOCKER build --tag "hg-dockerrpm-$1" - < $BUILDDIR/docker/$1