From: Yann E. MORIN Date: Fri, 22 May 2020 21:39:05 +0000 (+0200) Subject: core/br2-external: report better error messages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c62e78a85b7bfb51d3eee1596d56d292b0986c3c;p=buildroot.git core/br2-external: report better error messages The error is misleading: it reports that no name was provided, when in fact the external.desc file is missing. Signed-off-by: Yann E. MORIN p Reviewed-by: Romain Naour --- diff --git a/support/scripts/br2-external b/support/scripts/br2-external index fdea5aa251..ededd2d900 100755 --- a/support/scripts/br2-external +++ b/support/scripts/br2-external @@ -75,7 +75,7 @@ do_validate_one() { error "'%s': permission denied\n" "${br2_ext}" fi if [ ! -f "${br2_ext}/external.desc" ]; then - error "'%s': does not have a name (in 'external.desc'). See %s\n" \ + error "'%s': does not have an 'external.desc'. See %s\n" \ "${br2_ext}" "${MANUAL_URL}" fi br2_name="$(sed -r -e '/^name: +(.*)$/!d; s//\1/' "${br2_ext}/external.desc")"