aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-folders
diff options
context:
space:
mode:
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"