diff options
author | Sadie Powell <sadie@witchery.services> | 2020-07-30 14:29:11 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-07-30 14:29:11 +0100 |
commit | 46390a54b3a0310a4662bae448031d853c61e8d7 (patch) | |
tree | 3d26f3d926a867901b1f91abc7508264bea7ed78 /vendor/update | |
parent | 428eea648d7088999411762513e199d99a9e77fe (diff) |
Update vendored dependencies and fix update tool for Perl changes.
Diffstat (limited to 'vendor/update')
-rwxr-xr-x | vendor/update | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/update b/vendor/update index 6f9ff5e86..20a4284bc 100755 --- a/vendor/update +++ b/vendor/update @@ -50,7 +50,7 @@ close $fh; my ($data, $error) = from_toml $contents; print_error "unable to parse $config: $!" if $error; -while (my ($name, $info) = each $data) { +while (my ($name, $info) = each %{$data}) { print_format "Updating <|GREEN $name|> ...\n"; my $unpackdir = File::Temp->newdir; @@ -91,7 +91,7 @@ close $fh; open($fh, '>', $readme) or print_error "unable to write $readme: $!"; print $fh $contents =~ s/\n\#\#.*//rs; -for my $name (sort keys $data) { +for my $name (sort keys %{$data}) { my $info = $data->{$name}; printf $fh "\n## %s\n\n", $name; printf $fh "**Author** — [%s](mailto:%s)\n\n", $info->{author}, $info->{email} if $info->{email}; @@ -101,4 +101,4 @@ for my $name (sort keys $data) { my $website = $info->{website} // $info->{git}; printf $fh "**Website** — [%s](%s)\n", $website, $website; } -close $fh;
\ No newline at end of file +close $fh; |