Re: [PATCH] Don't use cpio in git-clone when not installed
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 1, 2007, 01:00 UTC
- Message-ID
- <fgb8b6$hqo$1@ger.gmane.org>
- In-Reply-To
- <alpine.LFD.0.999.0710311742170.3342@woody.linux-foundation.org>
Linus Torvalds wrote:
Show 15 quoted lines
> > > On Wed, 31 Oct 2007, Mike Hommey wrote: >> + if type cpio > /dev/null 2>&1; then >> + local=yes >> + fi > > Isn't "type" a bashism? > > Maybe just do > > if echo . | cpio -o > /dev/null 2>&1; then > > instead? Maybe even doing this at install time to avoid the overhead of > executing another process..
Or perhaps trap / check actual execution of cpio in git-clone, and fallback to ln -s / link if it fails...
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git