mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-21 12:28:30 +00:00
Ignore errors when clearing cache, closes #91
This commit is contained in:
parent
ca865f9d26
commit
b9c780c8c8
@ -209,11 +209,11 @@ fn run() -> Result<()> {
|
|||||||
assets.save()?;
|
assets.save()?;
|
||||||
} else if cache_matches.is_present("clear") {
|
} else if cache_matches.is_present("clear") {
|
||||||
print!("Clearing theme set cache ... ");
|
print!("Clearing theme set cache ... ");
|
||||||
fs::remove_file(theme_set_path())?;
|
fs::remove_file(theme_set_path()).ok();
|
||||||
println!("okay");
|
println!("okay");
|
||||||
|
|
||||||
print!("Clearing syntax set cache ... ");
|
print!("Clearing syntax set cache ... ");
|
||||||
fs::remove_file(syntax_set_path())?;
|
fs::remove_file(syntax_set_path()).ok();
|
||||||
println!("okay");
|
println!("okay");
|
||||||
} else if cache_matches.is_present("config-dir") {
|
} else if cache_matches.is_present("config-dir") {
|
||||||
println!("{}", config_dir());
|
println!("{}", config_dir());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user