acheronfail / repgrep

An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line.
Apache License 2.0
267 stars 4 forks source link

fix: only mention log dir if logs are enabled #79

Closed acheronfail closed 1 year ago

acheronfail commented 1 year ago

Running

rgr <a_regex_that_matches_no_files>

will return

No matches returned from rg!
Logs available at: /tmp/.repgrep

even if logging isn't enabled.

This makes the Logs available at... message only appear if logs are enabled.