mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-08-11 07:20:45 +00: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 {
|
sub replace_wiki_xref {
|
||||||
my ($blockid, $text) = @_;
|
my ($blockid, $text) = @_;
|
||||||
|
|
||||||
@ -213,7 +218,7 @@ if ($clicmd eq 'compile-wiki') {
|
|||||||
eval { compile_wiki(); };
|
eval { compile_wiki(); };
|
||||||
my $err = $@;
|
my $err = $@;
|
||||||
|
|
||||||
# cleanup
|
cleanup();
|
||||||
|
|
||||||
die $err if $err;
|
die $err if $err;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user