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:
parent
9c275615dc
commit
6f54fa277d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue