Idwer Vollering has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49308 )
Change subject: util/board_status/board_status.sh: improve mktemp behaviour on non-linux OSes ......................................................................
util/board_status/board_status.sh: improve mktemp behaviour on non-linux OSes
Signed-off-by: Idwer Vollering vidwer@gmail.com Change-Id: I763b0e7c7c81a2447ed20db0a25047d106e30606 --- M util/board_status/board_status.sh 1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/49308/1
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 17ba85c..ce636b7 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -306,7 +306,12 @@
# Results will be placed in a temporary location until we're ready to upload. # If the user does not wish to upload, results will remain in /tmp. -tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX) +case $(uname) in +FreeBSD) +tmpdir=$(mktemp -d -t coreboot_board_status);; +*) +tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX);; +esac
# Obtain coreboot config by running cbfstool on the ROM image. cbfstool may # already exist in build/ or util/cbfstool/, but if not then we'll build it