mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use unlink_if_exists()
This commit is contained in:
parent
2582b366eb
commit
98a56ef7b8
@ -96,7 +96,7 @@ switch ($command) {
|
||||
function do_upgrade($path) {
|
||||
echo "\nOne moment please... Invoking firmware upgrade...\n";
|
||||
exec("/etc/rc.firmware pfSenseupgrade $path");
|
||||
unlink($path);
|
||||
unlink_if_exists($path);
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user