From ab8ea8d59aafe93229a2bfa47300e22ac5beb1b5 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Mon, 4 Apr 2022 15:36:25 -0700 Subject: meta-google: gbmc-update: Only find a single sig We sometimes have provided tarballs with multiple image or sig files present. We need to limit find to just try the first one. Change-Id: If942c122e95a70ee5d84af702760ff4bc1cb2edb Signed-off-by: William A. Kennington III --- meta-google/recipes-phosphor/flash/gbmc-update/75-gbmc-upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-google') diff --git a/meta-google/recipes-phosphor/flash/gbmc-update/75-gbmc-upgrade.sh b/meta-google/recipes-phosphor/flash/gbmc-update/75-gbmc-upgrade.sh index 1831d49420..d08575a237 100644 --- a/meta-google/recipes-phosphor/flash/gbmc-update/75-gbmc-upgrade.sh +++ b/meta-google/recipes-phosphor/flash/gbmc-update/75-gbmc-upgrade.sh @@ -51,7 +51,7 @@ gbmc_upgrade_fetch() ( done local sig - sig="$(find "$tmpdir" -name 'image-*.sig')" || return + sig="$(find "$tmpdir" -name 'image-*.sig' | head -n 1)" || return local img="${sig%.sig}" mv "$sig" "$GBMC_UPGRADE_SIG" || return mv "$img" "$GBMC_UPGRADE_IMG" || return -- cgit v1.2.3