scripts/create-recipe: fix handling of --help

If --help is specified as the first argument, show the standard help
text instead of trying to process it as a URL.

(From OE-Core rev: abb139b10c3f431bcebb1847621f97d7ec6249ce)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2013-11-13 14:32:38 +00:00 committed by Richard Purdie
parent 9c275615dc
commit 6f54fa277d
1 changed files with 1 additions and 1 deletions

View File

@ -1794,7 +1794,7 @@ sub calculate_sums
# Main program
#
if ( @ARGV < 1 ) {
if ( @ARGV < 1 || $ARGV[0] eq "--help" ) {
print "Usage: $0 [-r] <url-of-source-tarballs>\n";
exit(1);
}