mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 14:59:34 +02:00
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:
+2
-1
@@ -114,7 +114,8 @@ unpad_one_byte()
|
||||
|
||||
fx_()
|
||||
{
|
||||
fd="`mktemp`" && x_ rm -f "$fd" && x_ touch "$fd"
|
||||
fd="`mktemp || err "can't create tmpfile"`" || err
|
||||
x_ rm -f "$fd" && x_ touch "$fd"
|
||||
xx="$1" && shift 1
|
||||
"$@" 2>/dev/null | sort 1>"$fd" 2>/dev/null || err "FATAL: !sort fx_"
|
||||
dx_ "$xx" "$fd" || :
|
||||
|
||||
Reference in New Issue
Block a user