From 26dfda0c014381e4db9ac9a79a2c8fea48d32014 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 14 May 2023 08:54:58 +0100 Subject: blobutil/inject: print script path on error --- resources/scripts/blobs/inject | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'resources/scripts') diff --git a/resources/scripts/blobs/inject b/resources/scripts/blobs/inject index ca43dd77..ca8aae4c 100755 --- a/resources/scripts/blobs/inject +++ b/resources/scripts/blobs/inject @@ -5,6 +5,7 @@ # SPDX-FileCopyrightText: 2023 Leah Rowe # SPDX-License-Identifier: GPL-3.0-only +sname="" archive="" _filetype="" rom="" @@ -36,6 +37,8 @@ CONFIG_GBE_BIN_PATH="" main() { + sname="${0}" + if [ $# -lt 1 ]; then fail "No options specified." elif [ "${1}" = "listboards" ]; then @@ -373,7 +376,7 @@ listboards() fail() { if [ ! -z ${@+x} ]; then - printf "\nERROR: ${@}\n" + printf "\n%s: ERROR: ${@}\n" ${sname} fi usage -- cgit v1.2.1