mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-28 08:05:55 +00:00
Also pass '--no-init' if version could not be retrieved
This commit is contained in:
1 parent
6684c0b07a
commit
e400ebd1bd
1 file changed
+3
@@ -81,6 +81,9 @@ impl OutputType {
|
|||||||
//
|
//
|
||||||
// See: http://www.greenwoodsoftware.com/less/news.530.html
|
// See: http://www.greenwoodsoftware.com/less/news.530.html
|
||||||
match retrieve_less_version() {
|
match retrieve_less_version() {
|
||||||
|
None => {
|
||||||
|
p.arg("--no-init");
|
||||||
|
}
|
||||||
Some(version) if version < 530 => {
|
Some(version) if version < 530 => {
|
||||||
p.arg("--no-init");
|
p.arg("--no-init");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user