Use unlink_if_exists()

This commit is contained in:
Scott Ullrich 2007-05-09 05:39:15 +00:00
parent 2582b366eb
commit 98a56ef7b8

View File

@ -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);
}
?>