Make check_uptodate compatible with BSD shells

BSD mktemp requires a template for the file/directory name.
GNU mktemp supports the option, but is not mandatory.

This change passes in the template, so that the check_uptodate.sh is
more compatible across different environments.

Change-Id: Id4abb92054363416272f583600e3d8ff2a9f9d42
Closes-Bug: 1246858
This commit is contained in:
Richard Lee 2013-10-31 14:34:44 -05:00
parent bca4b68aef
commit 089c25a4a3
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
TEMPDIR=`mktemp -d`
TEMPDIR=`mktemp -d /tmp/tmp.XXXXXXXXXX`
CFGFILE=heat.conf.sample
tools/config/generate_sample.sh -b ./ -p heat -o $TEMPDIR
if ! diff $TEMPDIR/$CFGFILE etc/heat/$CFGFILE