summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJavier Barrio <javier.barrio.mart@gmail.com>2014-10-13 15:54:18 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:18:23 +0200
commitf9a4d1103c1c4b9fa5b23b1ddc2666f015822ef2 (patch)
treebe8f7ee2e10c3382f66a26ded8dd46d7f88dea80 /scripts
parent0d5e75802c842ecc7c4778422c2d49609a889f3a (diff)
downloadlinux-f9a4d1103c1c4b9fa5b23b1ddc2666f015822ef2.tar.gz
scripts/headers_install.sh: fix error handling
- 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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/headers_install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh
index 5de5660cb708..fdebd66f8fc1 100644
--- a/scripts/headers_install.sh
+++ b/scripts/headers_install.sh
@@ -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"