Re: [PATCH v2 06/16] Prefer gpg2 in the test suite if available

Subject: Re: [PATCH v2 06/16] Prefer gpg2 in the test suite if available

Date: Sun, 24 Jan 2016 11:03:22 -0500

To: Tomi Ollila, Notmuch Mail

Cc:

From: Daniel Kahn Gillmor


On Sun 2016-01-24 10:25:26 -0500, Tomi Ollila wrote:
> On Wed, Jan 20 2016, Daniel Kahn Gillmor <dkg@fifthhorseman.net> wrote:
>> --- a/test/test-lib.sh
>> +++ b/test/test-lib.sh
>> @@ -85,6 +85,13 @@ unset GREP_OPTIONS
>>  # For emacsclient
>>  unset ALTERNATE_EDITOR
>>  
>> +# choose the preferred GnuPG binary:
>> +if hash gpg2 2> /dev/null; then
>
> For consistency, instead of hash ... 2>/dev/null, use command -v >/dev/null

gotcha, i found several other instances of "command -v $whatever >
/dev/null" in the codebase already, so i'll stick with that.  updated in
my local copy now.

   --dkg

Thread: