Also pass '--no-init' if version could not be retrieved

This commit is contained in:
sharkdp 2019-12-23 12:08:18 +01:00 committed by David Peter
parent 6684c0b07a
commit e400ebd1bd
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ impl OutputType {
//
// See: http://www.greenwoodsoftware.com/less/news.530.html
match retrieve_less_version() {
None => {
p.arg("--no-init");
}
Some(version) if version < 530 => {
p.arg("--no-init");
}