From: Wei Liu Subject: Re: [PATCH 4/7] git-checkout.sh: use "mkdir -p" Date: Mon, 2 Feb 2015 15:02:17 +0000 Message-ID: <20150202150217.GC2743@zion.uk.xensource.com> References: <1422881943-7687-1-git-send-email-wei.liu2@citrix.com> <1422881943-7687-5-git-send-email-wei.liu2@citrix.com> <1422889097.4801.5.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1422889097.4801.5.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: talex5@gmail.com, Wei Liu , stefano.stabellini@eu.citrix.com, anil@recoil.org, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, pooka@iki.fi, samuel.thibault@ens-lyon.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org On Mon, Feb 02, 2015 at 02:58:17PM +0000, Ian Campbell wrote: > On Mon, 2015-02-02 at 12:59 +0000, Wei Liu wrote: > > Otherwise mkdir extras/mini-os fails because extras doesn't exist. > > > > Signed-off-by: Wei Liu > > Acked-by: Ian Campbell > > As a future change perhaps we should clone mini-os under stubdom/* > somewhere instead of in extras? > Ian J suggested that I should avoid touching stubdom build at the moment so I went with the obvious correct approach. :-) Wei. > > Cc: Ian Jackson > > --- > > scripts/git-checkout.sh | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/scripts/git-checkout.sh b/scripts/git-checkout.sh > > index 15b3ce9..20ae31f 100755 > > --- a/scripts/git-checkout.sh > > +++ b/scripts/git-checkout.sh > > @@ -13,7 +13,7 @@ set -e > > > > if test \! -d $DIR-remote; then > > rm -rf $DIR-remote $DIR-remote.tmp > > - mkdir $DIR-remote.tmp; rmdir $DIR-remote.tmp > > + mkdir -p $DIR-remote.tmp; rmdir $DIR-remote.tmp > > $GIT clone $TREE $DIR-remote.tmp > > if test "$TAG" ; then > > cd $DIR-remote.tmp >