From 089c25a4a32fef54d555443a5671682f29acf001 Mon Sep 17 00:00:00 2001 From: Richard Lee Date: Thu, 31 Oct 2013 14:34:44 -0500 Subject: [PATCH] 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 --- tools/config/check_uptodate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/config/check_uptodate.sh b/tools/config/check_uptodate.sh index 96d77a97a1..c7e10d8932 100755 --- a/tools/config/check_uptodate.sh +++ b/tools/config/check_uptodate.sh @@ -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