From 1e88143ba8390bccd2dfbdda908e1b930b2a8b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 15 May 2020 12:35:00 +0200 Subject: [PATCH] update-recipe-checksums.sh: error out immediately in case of missing recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- scripts/update-recipe-checksums.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/update-recipe-checksums.sh b/scripts/update-recipe-checksums.sh index 0f919f4..2757f4f 100755 --- a/scripts/update-recipe-checksums.sh +++ b/scripts/update-recipe-checksums.sh @@ -1,7 +1,7 @@ #!/bin/sh # raspberrypi-card-write.sh -# (c) Copyright 2018 Andreas Müller +# (c) Copyright 2020 Andreas Müller # Licensed under terms of GPLv2 # # This script updates checksums in recipes after version bump. It is supposed @@ -20,16 +20,18 @@ if [ "$1" = "-d" ]; then _TOPDIR="$1" echo -e "${style_bold}Use $1 as recipe directory...${style_normal}" shift -else - echo -e "${style_bold}Ask bitbake for recipe directory...${style_normal}" - GetBitbakeEnvVar "TOPDIR" - _TOPDIR="$BitbakeEnvVar" fi if [ -z "$1" ]; then ErrorOut "No fetch target set in first parameter!" fi +if [ "x$_TOPDIR" = "x" ]; then + echo -e "${style_bold}Ask bitbake for recipe directory...${style_normal}" + GetBitbakeEnvVar "TOPDIR" + _TOPDIR="$BitbakeEnvVar" +fi + echo echo -e "${style_bold}Run bitbake -k --runall=fetch $@...${style_normal}"