Matthew Toseland skrev: > On Sat, Apr 08, 2006 at 02:51:51AM +0200, Zero3Cool wrote: > >> - As this script will update itself as well, >> https://emu.freenetproject.org/svn/trunk/apps/installer/installclasspath/windows/update.cmd >> >> *must* be updated as well (assuming you are satisfied with this ;)). If its >> different than the local copy, the local copy will be overwritten. >> > > Can you check that the file downloaded a) exists and b) is of non-zero > length, before replacing it? > The script already checks if the file exists, and if it does, it checks for an identification string at the very bottom of the script ("FREENET WINDOWS UDPATE SCRIPT") before executing it, hence it will definitely be non-zero-sized not a cutted of file. I did however write zero-size checks for the URL and .jar downloads for the next version, just in case, so thanks for reminding me anyway :). > - The local update script and snapshot link files are named "update.cmd" >> - Freenet will only be restarted (using stop.cmd and start.cmd) if an >> update is available (so this script can be scheduled without problems) >> > Very nice. > Thank you.
~Zero3Cool
