Project

General

Profile

« Previous | Next » 

Revision bd2b98c9

Added by Ermal LUÇI over 14 years ago

Remove any previous file with the same name as the one that will be downloaded. This avoid the gui to always show update availble even though the site could not be reached.

View differences:

usr/local/www/system_firmware_auto.php
136 136
	$nanosize .= strtolower(trim(file_get_contents("/etc/nanosize.txt")));
137 137
}
138 138

  
139
@unlink("/tmp/{$g['product_name']}_version");
139 140
download_file_with_progress_bar("{$updater_url}/version{$nanosize}", "/tmp/{$g['product_name']}_version");
140 141
$latest_version = str_replace("\n", "", @file_get_contents("/tmp/{$g['product_name']}_version"));
141 142
if(!$latest_version) {

Also available in: Unified diff