[pacman-dev] [PATCH 2/2] remove OPT_TEMP hack in parse_options call

Allan McRae allan at archlinux.org
Fri Jul 8 03:05:14 EDT 2011


On 08/07/11 14:31, DJ Mills wrote:
> Instead of using var=$(command || echo blah); if [[ $var = *"blah"* ]],
> which IMO is a creative hack, but very unnecessary, simply use:
> if ! var=$(command); then
>
> This patch gets rid of the hack.
>
> Signed-off-by: DJ Mills<danielmills1 at gmail.com>

On my working branch with a changed commit message.

Allan



More information about the pacman-dev mailing list