f28041e41f667f321dd587f8d8353bc25785511c

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1284 from obmarg/feature/debianwhichfix

Debian plugin now pipes which stderr to stdout

Diff

 1diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
 2index 71f22f7bdd65a3801b5ba1175148b9ff63630081..3f5cf205178e74da38791ebdc8ac3e0024240a5b 100644
 3--- a/plugins/debian/debian.plugin.zsh
 4+++ b/plugins/debian/debian.plugin.zsh
 5@@ -6,14 +6,14 @@
 6 
 7 # Use aptitude if installed, or apt-get if not.
 8 # You can just set apt_pref='apt-get' to override it.
 9-if [[ -e $( which aptitude ) ]]; then
10+if [[ -e $( which aptitude 2>&1 ) ]]; then
11     apt_pref='aptitude'
12 else
13     apt_pref='apt-get'
14 fi
15 
16 # Use sudo by default if it's installed
17-if [[ -e $( which sudo ) ]]; then
18+if [[ -e $( which sudo 2>&1 ) ]]; then
19     use_sudo=1
20 fi
21