diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-14 08:54:58 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-14 08:54:58 +0100 |
commit | 26dfda0c014381e4db9ac9a79a2c8fea48d32014 (patch) | |
tree | 691d910ed2861f3ea209102af14e61d5877b67c0 /resources/scripts/blobs | |
parent | 6289eeb55e8939bf4d5e52f8ebff386fa4b7b9e0 (diff) |
blobutil/inject: print script path on error
Diffstat (limited to 'resources/scripts/blobs')
-rwxr-xr-x | resources/scripts/blobs/inject | 5 |
1 files changed, 4 insertions, 1 deletions
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 <info@minifree.org> # 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 |