diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:34:03 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:34:03 +0200 |
commit | 98b8d407cb4650234d15cfe4d9322ad3bfe6c341 (patch) | |
tree | 17b0637c933f9bb534c41c548596254cc1619850 | |
parent | e96c39de735baa31012f09589fb493f5960ef595 (diff) | |
download | arching-kaos-tools-98b8d407cb4650234d15cfe4d9322ad3bfe6c341.tar.gz arching-kaos-tools-98b8d407cb4650234d15cfe4d9322ad3bfe6c341.tar.bz2 arching-kaos-tools-98b8d407cb4650234d15cfe4d9322ad3bfe6c341.zip |
Added generic tempassin (temp folder creator)
-rwxr-xr-x | bin/tempassin | 9 |
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" |