Skip to content

Commit

Permalink
Create tmp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Arial-Z committed Feb 18, 2023
1 parent 07637bd commit 2462b77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions animes-renamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ else
find $SCRIPT_FOLDER/data/* -mtime +4 -exec rm {} \; #delete json data if older than 2 days
find $SCRIPT_FOLDER/data/ongoing.tsv -mmin +720 -exec rm {} \; #delete ongoing if older than 12h
fi
if [ ! -d $SCRIPT_FOLDER/tmp ] #check if exist and create folder for json data
then
mkdir $SCRIPT_FOLDER/tmp
fi
if [ ! -d $SCRIPT_FOLDER/ID ] #check if exist and create folder and file for ID
then
mkdir $SCRIPT_FOLDER/ID
Expand Down
5 changes: 4 additions & 1 deletion movies-renamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ then
else
find $SCRIPT_FOLDER/data/* -mtime +4 -exec rm {} \; #delete json data if older than 2 days
fi

if [ ! -d $SCRIPT_FOLDER/tmp ] #check if exist and create folder for json data
then
mkdir $SCRIPT_FOLDER/tmp
fi
if [ ! -d $SCRIPT_FOLDER/ID ]
then
mkdir $SCRIPT_FOLDER/ID
Expand Down

0 comments on commit 2462b77

Please sign in to comment.