From eb3e7da71a24205ed0c61ec3e7c471696109254d Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Wed, 16 Mar 2022 14:24:08 +0000 Subject: [PATCH] Bug Fix #978: mktemp usage incompatible with some BSD-derived systems https://github.com/BestImageViewer/geeqie/issues/978 Variable TMPDIR is not necessarily set. --- doc/create-doxygen-lua-api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/create-doxygen-lua-api.sh b/doc/create-doxygen-lua-api.sh index 84f71991..0738d728 100755 --- a/doc/create-doxygen-lua-api.sh +++ b/doc/create-doxygen-lua-api.sh @@ -39,7 +39,7 @@ export DOCDIR="$PWD/html/lua-api" export INLINE_SOURCES=NO export STRIP_CODE_COMMENTS=YES -TMPFILE=$(mktemp "$TMPDIR/geeqie.XXXXXXXX") || exit 1 +TMPFILE=$(mktemp "${TMPDIR:-/tmp}/geeqie.XXXXXXXX") || exit 1 # Modify the Geeqie doxygen.conf file to produce # only the data needed for the lua API document -- 2.20.1