lib.sh and rom.sh: stricter mktemp usage

error out under fault condition

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-09-01 08:14:49 +01:00
parent 40f064ae33
commit ed84d33e59
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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" ] && \