Commit f9a4d1103c1c4b9fa5b23b1ddc2666f015822ef2

Authored by Javier Barrio
Committed by Linus Torvalds
1 parent 0d5e75802c

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

scripts/headers_install.sh
1 1 #!/bin/sh
2 2  
3   -if [ $# -lt 1 ]
  3 +if [ $# -lt 2 ]
4 4 then
5   - echo "Usage: headers_install.sh OUTDIR SRCDIR [FILES...]
  5 + echo "Usage: headers_install.sh OUTDIR SRCDIR [FILES...]"
6 6 echo
7 7 echo "Prepares kernel header files for use by user space, by removing"
8 8 echo "all compiler.h definitions and #includes, removing any"