blobutil/inject: print script path on error

This commit is contained in:
Leah Rowe
2023-05-14 08:54:58 +01:00
parent 6289eeb55e
commit 26dfda0c01
+4 -1
View File
@@ -5,6 +5,7 @@
# SPDX-FileCopyrightText: 2023 Leah Rowe <info@minifree.org> # SPDX-FileCopyrightText: 2023 Leah Rowe <info@minifree.org>
# SPDX-License-Identifier: GPL-3.0-only # SPDX-License-Identifier: GPL-3.0-only
sname=""
archive="" archive=""
_filetype="" _filetype=""
rom="" rom=""
@@ -36,6 +37,8 @@ CONFIG_GBE_BIN_PATH=""
main() main()
{ {
sname="${0}"
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
fail "No options specified." fail "No options specified."
elif [ "${1}" = "listboards" ]; then elif [ "${1}" = "listboards" ]; then
@@ -373,7 +376,7 @@ listboards()
fail() fail()
{ {
if [ ! -z ${@+x} ]; then if [ ! -z ${@+x} ]; then
printf "\nERROR: ${@}\n" printf "\n%s: ERROR: ${@}\n" ${sname}
fi fi
usage usage