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:
@ -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
|
||||
|
Reference in New Issue
Block a user