commit | b08215272872f452787915cd3a8e0b0ea0b88385 | [log] [tgz] |
---|---|---|
author | midchildan <git@midchildan.org> | Tue Apr 13 04:27:06 2021 +0900 |
committer | GitHub <noreply@github.com> | Mon Apr 12 12:27:06 2021 -0700 |
tree | e466e883b18dd7ba4f14aa23ff09ff656bab5346 | |
parent | cc9c446e0eaacf08e2954d23d49e924fc2402719 [diff] |
Fix a bug in tspush that pushes corrupted content to cache (#7696)
diff --git a/tools/tspush b/tools/tspush index 36a65e2..a16f709 100755 --- a/tools/tspush +++ b/tools/tspush
@@ -50,8 +50,8 @@ die ("--file and --url must be given!" ) unless ( $f_name && $url) ; open (my $fh, '<', $f_name) or die $!; +chomp (my $f_type = `file -b --mime $f_name`); my $uri = URI->new($url); -my $f_type = `file -b --mime $f_name`; # # read the file in one go: