Commit 5014b151 authored by Vitaly Lipatov's avatar Vitaly Lipatov

func/common: add make_temp_file function

parent 064ed423
......@@ -197,6 +197,15 @@ add_changelog_helper()
return $R
}
make_temp_file()
{
# Workaround about broken mktemp
if mktemp -V >/dev/null 2>/dev/null ; then
mktemp || exit 1
else
mktemp /tmp/$1.XXXXXX || exit 1
fi
}
load_mod()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment