> Use mktemp unconditionally for security reasons.
> Avoid non-portable seq.
>
> Signed-off-by: Carl-Daniel Hailfinger <
c-d.hailfinger.devel.2006@gmx.net>
>
> Index: flashrom-torturescript_portability/util/flashrom_partial_write_test.sh
> ===================================================================
> --- flashrom-torturescript_portability/util/flashrom_partial_write_test.sh (Revision 1219)
> +++ flashrom-torturescript_portability/util/flashrom_partial_write_test.sh (Arbeitskopie)
> @@ -34,8 +34,12 @@
> echo "testing flashrom binary: ${FLASHROM}"
>
> OLDDIR=$(pwd)
> -if [ -z "$TMPDIR" ]; then
> - TMPDIR=$(mktemp -d) # test data location
> +
> +# test data location
> +TMPDIR=$(mktemp -d -t flashrom_test.XXXXXXXXXX)
> +if [ "$?" != "0" ] ; then
> + echo "Could not create temporary directory"
Full stop at the end.