|
|
@ -15,7 +15,7 @@ _mktemp(){ |
|
|
|
local rand |
|
|
|
local rand |
|
|
|
while true |
|
|
|
while true |
|
|
|
do |
|
|
|
do |
|
|
|
rand="$(head -c 55 /dev/urandom | base64 | grep -o '[[:alnum:]]' | head -c 20 | tr -d '\n')" |
|
|
|
rand="$(set -eo pipefail && head -c 55 /dev/urandom | base64 | grep -o '[[:alnum:]]' | head -c 20 | tr -d '\n')" |
|
|
|
if ! test -f "$1"/"$rand" ; then |
|
|
|
if ! test -f "$1"/"$rand" ; then |
|
|
|
echo "$1"/"$rand" |
|
|
|
echo "$1"/"$rand" |
|
|
|
break |
|
|
|
break |
|
|
|