aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-tempassin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-03 01:14:58 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-03 01:14:58 +0300
commitd747677c2860326e7d673861319dcb0e2149daa4 (patch)
tree640c4bbca466665eee68e4735688b3cdd4022ee3 /bin/ak-tempassin
parent4f8fb0a8acd5eec0caaf1087d7ecf91f9166c807 (diff)
downloadarching-kaos-tools-d747677c2860326e7d673861319dcb0e2149daa4.tar.gz
arching-kaos-tools-d747677c2860326e7d673861319dcb0e2149daa4.tar.bz2
arching-kaos-tools-d747677c2860326e7d673861319dcb0e2149daa4.zip
Fixed temporary folder creation
Diffstat (limited to 'bin/ak-tempassin')
-rwxr-xr-xbin/ak-tempassin10
1 files changed, 2 insertions, 8 deletions
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"