logo

deblob

remove binary executables from a directory git clone https://hacktivis.me/git/deblob.git
commit: 00bcc40015fa0358eff706ca50463f69f9e06efa
parent 3493120fa88b3c74ef7208069864fea9d26d6feb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 18 Feb 2022 00:36:02 +0100

Don't print on io::EOF

Diffstat:

Mmain.ha3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.ha b/main.ha @@ -33,7 +33,8 @@ fn is_blob(filename: str) (bool|invalid) = { const n = match(io::read(file, buffer)) { case let s: size => yield s; case io::EOF => - fmt::errorf("EOF reading: {}\n", filename)!; + // empty file + //fmt::errorf("EOF reading: {}\n", filename)!; return invalid; case let e: io::error => fmt::errorf("Error reading `{}`: {}\n", filename, io::strerror(e))!;