[pass] [PATCH] platform: find getopt in alternate osx locations

Allan Odgaard lists+pass at simplit.com
Sun Sep 28 19:54:31 CEST 2014


On 10 Sep 2014, at 3:39, Jamie Couture wrote:

> -GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || echo 
> /usr/local)/bin/getopt"
> +GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || which port 
> 2>/dev/null && echo /opt/local || echo /usr/local)/bin/getopt"

In bash && and || have equal precedence so the above should instead be:

     GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || { which port 
2>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"


More information about the Password-Store mailing list