We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e28e82a commit 17adf89Copy full SHA for 17adf89
tool/gen_mackerel_check.pl
@@ -13,16 +13,14 @@
13
sub replace {
14
my ($glob, $code) = @_;
15
for my $file (glob $glob) {
16
- my $content = $code->(path($file)->slurp_utf8, $file);
+ my $content = $code->(slurp_utf8($file), $file);
17
$content .= "\n" if $content !~ /\n\z/ms;
18
19
- my $f = path($file);
20
# for keeping permission
21
- $f->append_utf8({truncate => 1}, $content);
+ append_file($file, $content);
22
}
23
24
25
-
26
sub retrieve_plugins {
27
sort map {s/^$PLUGIN_PREFIX//; $_} <$PLUGIN_PREFIX*>;
28
0 commit comments