5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-03-27 18:50:10 +03:00

factor out cleanup method

This commit is contained in:
Dietmar Maurer 2016-10-10 10:18:56 +02:00
parent b489b02c74
commit 17d8be0cbf

@ -61,6 +61,11 @@ sub pop_environment {
}
}
sub cleanup {
# TODO: anything ?
}
sub replace_wiki_xref {
my ($blockid, $text) = @_;
@ -213,7 +218,7 @@ if ($clicmd eq 'compile-wiki') {
eval { compile_wiki(); };
my $err = $@;
# cleanup
cleanup();
die $err if $err;