Skip to content

Commit

Permalink
fix: ./tmp dir cleanup after processing
Browse files Browse the repository at this point in the history
  • Loading branch information
gacopl committed Dec 27, 2023
1 parent ff2c389 commit 648a1a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dvmkv2mp4
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function cleanup {
rm chapters.list
rm BL*hevc
rm "${input}.dvconverting"
rm -rf ./tmp
if [ $REMOVESOURCE == "yes" ]; then
rm "${input}"
fi
Expand Down Expand Up @@ -383,10 +384,12 @@ EOF
cleanup
else
rm "${input}.dvconverting"
rm -rf ./tmp
fi
done
end=`date +%s`
runtime=$((end-start))
hours=$((runtime / 3600)); minutes=$(( (runtime % 3600) / 60 )); seconds=$(( (runtime % 3600) % 60 ));
echo
echo "Conversions runtime: $hours:$minutes:$seconds (hh:mm:ss)"
echo

0 comments on commit 648a1a0

Please sign in to comment.