summaryrefslogtreecommitdiff
path: root/include/rom.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-09-01 08:14:49 +0100
committerLeah Rowe <leah@libreboot.org>2025-09-01 08:14:49 +0100
commited84d33e59b8b2cf1789eb591c592d921907dbdd (patch)
tree8e67bf7d04a0ef0dbdacd3028e4ae9acf5fa72a7 /include/rom.sh
parent40f064ae336f125762584be8a6ddd52d7ff1cd01 (diff)
lib.sh and rom.sh: stricter mktemp usage
error out under fault condition Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/rom.sh')
-rw-r--r--include/rom.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rom.sh b/include/rom.sh
index 34dea35c..53bb4487 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -257,7 +257,7 @@ cprom()
newrom="${newrom%.rom}_${tmpnew%.gkb}.rom"
irom="$tmprom"
- [ $# -lt 1 ] || irom="`mktemp`" || err "!mk irom, $(echo "$@")"
+ [ $# -lt 1 ] || irom="`mktemp || err "!mk irom, $(echo "$@")"`" || err
[ $# -gt 0 ] && x_ cp "$tmprom" "$irom" && cpcmd="mv"
[ $# -gt 0 ] && [ "${1%.gkb}" != "$1" ] && \