mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Don't complain about stdin with --quit-ater-scan
That flag is for benchmarking, we're not expecting to have user input.
This commit is contained in:
parent
574a4348a3
commit
2f97601736
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ pub fn main() void {
|
|||
else config.scan_ui = .line;
|
||||
} else config.scan_ui = .full;
|
||||
}
|
||||
if (!in_tty and import_file == null and export_file == null)
|
||||
if (!in_tty and import_file == null and export_file == null and !quit_after_scan)
|
||||
ui.die("Standard input is not a TTY. Did you mean to import a file using '-f -'?\n", .{});
|
||||
config.nc_tty = !in_tty or (if (export_file) |f| std.mem.eql(u8, f, "-") else false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue