]> git.stg.codes - stg.git/commitdiff
Portable mkdir.
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 25 Oct 2014 01:53:27 +0000 (04:53 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 25 Oct 2014 01:53:27 +0000 (04:53 +0300)
functest/do.sh

index a007aa9bd8d6fd9fbec37ecc86a325a926355010..652dbcec329b0fbd8db48b0d291ca7ca6960761d 100755 (executable)
@@ -4,7 +4,7 @@ MKTEMP=/usr/bin/mktemp
 RM=/bin/rm
 
 printf "Creating temporary dir... "
 RM=/bin/rm
 
 printf "Creating temporary dir... "
-DIR=`$MKTEMP -d`
+DIR=`$MKTEMP -d 2> /dev/null || $MKTEMP -d -t stg`
 
 if [ "$DIR" == "" ]
 then
 
 if [ "$DIR" == "" ]
 then