I've been noticing that if there's any error in the load.bety.sh database sync (non-conforming schemas, tables with invalid values) that the script doesn't clean up after itself, but instead just leaves the folder in /tmp. Since out /tmp is pretty small, this means that I regularly (every couple days) have to go an clean it out manually. Would be nice if the script was a bit more robust.
Added a new variable called KEEPTMP which is NO by default. If this is YES it will keep the tmp folder, otherwise it will delete the tmp folder if the synchronization failed.
I've been noticing that if there's any error in the load.bety.sh database sync (non-conforming schemas, tables with invalid values) that the script doesn't clean up after itself, but instead just leaves the folder in /tmp. Since out /tmp is pretty small, this means that I regularly (every couple days) have to go an clean it out manually. Would be nice if the script was a bit more robust.