From d747677c2860326e7d673861319dcb0e2149daa4 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 3 Apr 2023 01:14:58 +0300 Subject: Fixed temporary folder creation --- bin/ak-tempassin | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'bin/ak-tempassin') diff --git a/bin/ak-tempassin b/bin/ak-tempassin index 101796e..e692769 100755 --- a/bin/ak-tempassin +++ b/bin/ak-tempassin @@ -1,9 +1,3 @@ #!/bin/bash -TEMP="/tmp/aktmp" -TIMESTAMP="$(date -u +%s)" -export TEMPASSIN="${TEMP}_${TIMESTAMP}" -if [ ! -d $TEMPASSIN ]; then - mkdir $TEMPASSIN -fi -cd $TEMPASSIN -echo "Created temporariry folder $TEMPASSASIN" +AK_TEMP="mktemp -d aktmp-XXXXXXX" +echo "$AK_TEMP" -- cgit v1.2.3