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-profile | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'bin/ak-profile') diff --git a/bin/ak-profile b/bin/ak-profile index 63df6fd..0b08fe3 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -18,20 +18,6 @@ else logit "[INFO]" "zprofiledir found" fi -tempassin(){ - if [ ! -z $1 ] - then - TEMPASSIN="$1" - else - TIMESTAMP="$(date -u +%s)" - TEMPASSIN="/tmp/aktmp_$TIMESTAMP" - fi - if [ ! -d $TEMPASSIN ]; then - mkdir $TEMPASSIN - fi - cd $TEMPASSIN - # echo "$TEMPASSIN" -} # This is working with DATA blocks. DATA that matched profile/add ACTION # @@ -163,7 +149,8 @@ import(){ # Adds a file as a profile/add ACTION on the zchain. add(){ - tempassin + TEMP="$(ak-tempassin)" + cd $TEMP if [ -f $ZPROFILEDIR/$1 ]; then FILE="$ZPROFILEDIR/$1" echo "Adding from " $FILE -- cgit v1.2.3