Use simplified mktemp(1)

This commit is contained in:
Bryan Drewery 2012-06-26 22:01:19 -05:00
parent 19542c98be
commit 09d7bc9632
1 changed files with 1 additions and 1 deletions

2
beadm
View File

@ -414,7 +414,7 @@ EOF
fi fi
if ! [ ${3} ] if ! [ ${3} ]
then then
TARGET="/tmp/tmp.$( tr -cd 'A-Za-z' < /dev/random|head -c 6 )" TARGET=$(mktemp /tmp/tmp.XXXXXX)
mkdir -p ${TARGET} mkdir -p ${TARGET}
fi fi
if ! mount -t zfs ${POOL}/ROOT/${BE} ${TARGET} if ! mount -t zfs ${POOL}/ROOT/${BE} ${TARGET}