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

This commit is contained in:
Nicolas Williams committed 2015-07-28 00:28:54 -05:00
1 parent 6b55baa00f
commit b5edbf7ffa
1 file changed
+2 -2
+2 -2
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