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<[email protected]>

On my working branch with a changed commit message.

Allan


Reply via email to