2 ms·
A truncated download might happen for all sorts of reasons, like your internet connection dropping while you download the script. If you don't notice you might
by wongarsu 3y ago
A truncated download might happen for all sorts of reasons, like your internet connection dropping while you download the script. If you don't notice you might accidentally run an incomplete script and leave your system in some broken or at least confusing state. They wrapped everything in a main function to prevent that from happening
- loeg 3y agoBrowsers typically emit downloads to temporary files until they are complete, then rename them into the final location, to prevent this kind of issue.