From 98b8d407cb4650234d15cfe4d9322ad3bfe6c341 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 26 Dec 2021 06:34:03 +0200 Subject: Added generic tempassin (temp folder creator) --- bin/tempassin | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/tempassin (limited to 'bin') 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" -- cgit v1.2.3