aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-sm-files
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-sm-files')
-rwxr-xr-xbin/ak-sm-files17
1 files changed, 1 insertions, 16 deletions
diff --git a/bin/ak-sm-files b/bin/ak-sm-files
index 7eb3b7d..a22c0d7 100755
--- a/bin/ak-sm-files
+++ b/bin/ak-sm-files
@@ -21,21 +21,6 @@ if [ ! -d $ZFILESDIR ]; then
else
logit "[INFO]" "$ZFILESDIR 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(){
echo "$PROGRAM - file"
@@ -54,7 +39,7 @@ main(){
CRP="$2"
echo "Adding $FILENAME"
logit "[INFO]" "Switching to tmp folder..."
- TEMPASSIN="$(tempassin)"
+ TEMPASSIN="$(ak-tempassin)"
cd $TEMPASSIN
if [ $? == 0 ]; then