summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2011-12-21 00:56:34 +0400
committerIgor Murzov <e-mail@date.by>2011-12-21 00:56:34 +0400
commit15f5c80c2e13e23b76d8d92c0dffcb15acc654d3 (patch)
treece54c6bfb0bc1a4b746df5916c972ac046dda812
parent08a2264c8253496fa7d4abfa4ff969c5ccb7de3e (diff)
downloadbash-completion-15f5c80c2e13e23b76d8d92c0dffcb15acc654d3.tar.gz
Revert "route: Don't check $OSTYPE (Alioth: #311407)."
This reverts commit dab2f3c5519d01902e795e583b0546eb30bd04c7. It broke at least FreeBSD route completion.
-rw-r--r--completions/route2
1 files changed, 2 insertions, 0 deletions
diff --git a/completions/route b/completions/route
index aafc7f7d..40d4f490 100644
--- a/completions/route
+++ b/completions/route
@@ -1,5 +1,7 @@
# Linux route(8) completion -*- shell-script -*-
+[[ $OSTYPE == *linux* ]] || return 1
+
_route()
{
local cur prev words cword