Commit 8b0040aa authored by Guillaume Rousse's avatar Guillaume Rousse

delete local copy of remote metadata file on normal exit

parent 02877a59
......@@ -179,3 +179,12 @@ if (is_array($metadataSProviders)){
exit("Exiting: Could not rename temporary file $metadataTempSPFile to $metadataSPFile");
}
}
// clean up if needed
if ($metadataURL) {
$result = unlink($metadataFile);
if (!$result) {
$error = error_get_last();
exit("Exiting: could not delete temporary file $metadataFile: $error\n");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment