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:
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user