aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-folders
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-folders
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-folders')
-rwxr-xr-xbin/ak-folders17
1 files changed, 1 insertions, 16 deletions
diff --git a/bin/ak-folders b/bin/ak-folders
index df88ca1..b30f401 100755
--- a/bin/ak-folders
+++ b/bin/ak-folders
@@ -10,21 +10,6 @@ if [ ! -d $ZFOLDERSDIR ]; then
else
ak-logthis "error $ZFOLDERSDIR not 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"
-
-}
usage(){
title
@@ -42,7 +27,7 @@ main(){
CRP="$2"
echo "Adding $FOLDERNAME"
ak-logthis "Switching to tmp folder..."
- TEMPASSIN="$(tempassin)"
+ TEMPASSIN="$(ak-tempassin)"
cd $TEMPASSIN
if [ $? == 0 ]; then
ak-logthis "Success"