On machines with small tmp partitions (VPS being prime examples), download_state.sh will fail without the user being able to do anything other than modify the script to download somewhere other than the hardcoded /tmp path of mktemp.
Using the standard TMPDIR variable would allow users to change the download location if they need to, without it changing anything else to the script's behavior.
On machines with small tmp partitions (VPS being prime examples), download_state.sh will fail without the user being able to do anything other than modify the script to download somewhere other than the hardcoded /tmp path of mktemp.
Using the standard TMPDIR variable would allow users to change the download location if they need to, without it changing anything else to the script's behavior.