1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

OS X's mktemp -d requires template (fix #876)

This commit is contained in:
Nicolas Williams
2015-07-28 00:28:54 -05:00
parent 6b55baa00f
commit b5edbf7ffa

View File

@ -29,8 +29,8 @@ clean () {
fi
}
trap clean EXIT
d=`mktemp -d -t || true`
d=`mktemp -d -t jqXXXXX || true`
if [ -z "$d" ]; then
echo "Your OS does not support mktemp(1) -d" 1>&2
exit 0
exit 1
fi