Skip to content

Commit

Permalink
Message about switching to gsed will be displayed always
Browse files Browse the repository at this point in the history
  • Loading branch information
SoptikHa2 committed Apr 22, 2020
1 parent 5f1bac5 commit d11b4fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sed/communication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ impl SedCommunicator {
// change executing path to "gsed" and try again.
if self.options.sed_path.is_none() && sed_debug_command.len() == 0 {
self.options.sed_path = Some(String::from("gsed"));
if self.options.debug {
eprintln!(
eprintln!(
"[Info] Sed failed and didn't return any output. As sed path wasn't specified, trying again with \"gsed\". If even that won't work, make sure \
sed is able to process your script. Most common mistake is forgeting to use -E."
);
}
return self.get_sed_output();
}

Expand Down

0 comments on commit d11b4fb

Please sign in to comment.