1) Log will no longer be spammed if there is a lockfile. instead message will print once and then '.' will be printed every minute as it waits.
2) mktemp in original implementation left artifacts in /tmp folder every time transcode would happen. These are now cleaned up immediately after mktemp is used (for lockfile and for mkv temp file).
3) There is no longer sledgehammer deletion of files that may have been made by other processes. If everything is working well then the script will clean up its own files only. So only tmp.* it creates and only lockfiles it creates.
3 main changes:
1) Log will no longer be spammed if there is a lockfile. instead message will print once and then '.' will be printed every minute as it waits.
2) mktemp in original implementation left artifacts in /tmp folder every time transcode would happen. These are now cleaned up immediately after mktemp is used (for lockfile and for mkv temp file).
3) There is no longer sledgehammer deletion of files that may have been made by other processes. If everything is working well then the script will clean up its own files only. So only tmp.* it creates and only lockfiles it creates.