#N/A: Check that brew/apt available in related rules

This commit is contained in:
nvbn
2016-02-06 16:37:11 +03:00
parent 778d5f3e6e
commit 28d078708b
8 changed files with 22 additions and 7 deletions
+3
View File
@@ -0,0 +1,3 @@
from thefuck.utils import which
apt_available = bool(which('apt-get'))
+1 -1
View File
@@ -2,7 +2,7 @@ import subprocess
from ..utils import memoize, which
enabled_by_default = bool(which('brew'))
brew_available = bool(which('brew'))
@memoize