scripts/headers_install.sh: fix error handling
authorJavier Barrio <javier.barrio.mart@gmail.com>
Mon, 13 Oct 2014 22:54:18 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:23 +0000 (02:18 +0200)
- headers_install requires at least two arguments

- missed closing quote

Signed-off-by: Javier Barrio <javier.barrio.mart@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/headers_install.sh

index 5de5660cb7085ac899df9f9dc87989bc931f24be..fdebd66f8fc16c2db0189480318c5f8599aebdf0 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-if [ $# -lt 1 ]
+if [ $# -lt 2 ]
 then
-       echo "Usage: headers_install.sh OUTDIR SRCDIR [FILES...]
+       echo "Usage: headers_install.sh OUTDIR SRCDIR [FILES...]"
        echo
        echo "Prepares kernel header files for use by user space, by removing"
        echo "all compiler.h definitions and #includes, removing any"