aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-12-26 06:34:03 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-12-26 06:34:03 +0200
commit98b8d407cb4650234d15cfe4d9322ad3bfe6c341 (patch)
tree17b0637c933f9bb534c41c548596254cc1619850 /bin
parente96c39de735baa31012f09589fb493f5960ef595 (diff)
downloadarching-kaos-tools-98b8d407cb4650234d15cfe4d9322ad3bfe6c341.tar.gz
arching-kaos-tools-98b8d407cb4650234d15cfe4d9322ad3bfe6c341.tar.bz2
arching-kaos-tools-98b8d407cb4650234d15cfe4d9322ad3bfe6c341.zip
Added generic tempassin (temp folder creator)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/tempassin9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/tempassin b/bin/tempassin
new file mode 100755
index 0000000..101796e
--- /dev/null
+++ b/bin/tempassin
@@ -0,0 +1,9 @@
+#!/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"