From fe362b79fd0de75fc2d469d2c7d63404bfe5852c Mon Sep 17 00:00:00 2001 From: Daniel Jaouen Date: Wed, 19 Feb 2014 18:59:33 -0500 Subject: [PATCH] homebrew_cask: check err instead of out for "nothing to list". --- packaging/homebrew_cask | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/homebrew_cask b/packaging/homebrew_cask index ec9c47ecfb9..9954da47a26 100644 --- a/packaging/homebrew_cask +++ b/packaging/homebrew_cask @@ -327,7 +327,7 @@ class HomebrewCask(object): cmd = [self.brew_path, 'cask', 'list'] rc, out, err = self.module.run_command(cmd) - if 'nothing to list' in out: + if 'nothing to list' in err: return False elif rc == 0: casks = [cask_.strip() for cask_ in out.split('\n') if cask_.strip()]