check-kernel-headers: mktemp --tmpdir not available on RedHat RHEL5
authorThomas De Schampheleire <patrickdepinguin@gmail.com>
Tue, 2 Sep 2014 09:25:45 +0000 (11:25 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 28 Sep 2014 18:40:57 +0000 (20:40 +0200)
mktemp --tmpdir is not available on older Redhat RHEL5 machines. The
alternative that has the same behavior is 'mktemp -t'.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/check-kernel-headers.sh

index 82cf9ac2746e553af92de8f32052808c636822e6..a8cca78b275de310bd75a28509fcd4929cdd8075 100755 (executable)
@@ -8,7 +8,7 @@ HDR_M="${HDR_VER%%.*}"
 HDR_V="${HDR_VER#*.}"
 HDR_m="${HDR_V%%.*}"
 
-EXEC="$(mktemp --tmpdir check-headers.XXXXXX)"
+EXEC="$(mktemp -t check-headers.XXXXXX)"
 
 # We do not want to account for the patch-level, since headers are
 # not supposed to change for different patchlevels, so we mask it out.