summaryrefslogtreecommitdiff
path: root/homebrew/bashcompletion/patches.sh
blob: 0c53ea1b13e4323f37a3968b39c1abe9645ed58c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
wget https://raw.githubusercontent.com/Homebrew/formula-patches/c1d87451da3b5b147bed95b2dc783a1b02520ac5/bash-completion/bug-740971.patch
echo 'Creating brew-patch.diff'
cat << EOF >> brew-patch.diff
--- a/completions/man
+++ b/completions/man
@@ -27,7 +27,7 @@
     fi

     uname=$( uname -s )
-    if [[ $uname == @(Linux|GNU|GNU/*|FreeBSD|Cygwin|CYGWIN_*) ]]; then
+    if [[ $uname == @(Darwin|Linux|GNU|GNU/*|FreeBSD|Cygwin|CYGWIN_*) ]]; then
         manpath=$( manpath 2>/dev/null || command man --path )
     else
         manpath=$MANPATH
EOF