Thread (18 messages) flat view 18 messages, 12 authors, 2016-06-15

Re: [PATCH] Don't use cpio in git-clone when not installed

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:43:45


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..

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help