barefoot icon indicating copy to clipboard operation
barefoot copied to clipboard

Simplify passphrase grep check

Open aureliojargas opened this issue 6 years ago • 1 comments

Since grep returns with exit code 0 when the search string is found, it can be used directly on the if.

Also, using the -s option there's no need to check if the file exists.

aureliojargas avatar Mar 13 '18 14:03 aureliojargas

Thanks for the suggestion. This line is also modified in #90 so I'd suggest we consider making this change after that has been merged.

jongiddy avatar Mar 20 '18 07:03 jongiddy